Update FallingBlock to new Anvil formats, possible fix for #2189

I don't have time to test yet, so I am not sure if it does fix it.
This commit is contained in:
PEMapModder
2014-10-25 12:26:57 +08:00
parent be948f99cc
commit 8e7077ff4b
2 changed files with 17 additions and 5 deletions

View File

@ -29,6 +29,7 @@ use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Double;
use pocketmine\nbt\tag\Enum;
use pocketmine\nbt\tag\Float;
use pocketmine\nbt\tag\Int;
use pocketmine\Player;
abstract class Fallable extends Solid{
@ -60,7 +61,8 @@ abstract class Fallable extends Solid{
new Float("", 0),
new Float("", 0)
]),
"Tile" => new Byte("Tile", $this->getID())
"TileID" => new Int("TileID", $this->getID()),
"Data" => new Byte("Data", $this->getDamage()),
]));
$fall->spawnToAll();