mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
A giant hack to cut down code needed for runtime block serialization by 50%
this also avoids repeated information and inconsistencies.
This commit is contained in:
@ -35,7 +35,7 @@ class Dye extends Item{
|
||||
}
|
||||
|
||||
protected function encodeType(RuntimeDataWriter $w) : void{
|
||||
$w->writeDyeColor($this->color);
|
||||
$w->dyeColor($this->color);
|
||||
}
|
||||
|
||||
public function getColor() : DyeColor{
|
||||
|
Reference in New Issue
Block a user