mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 16:34:05 +00:00
fixed typo
This commit is contained in:
parent
edf0d44416
commit
928519f226
@ -35,6 +35,15 @@ class BurningFurnaceBlock extends SolidBlock{
|
|||||||
);
|
);
|
||||||
$this->meta = $faces[$player->entity->getDirection()];
|
$this->meta = $faces[$player->entity->getDirection()];
|
||||||
$this->level->setBlock($block, $this, true, false, true);
|
$this->level->setBlock($block, $this, true, false, true);
|
||||||
|
$nbt = new NBT\Tag\Compound(false, array(
|
||||||
|
"Items" => new NBT\Tag\Enum("Items", array()),
|
||||||
|
"id" => new NBT\Tag\String("id", Tile::FURNACE),
|
||||||
|
"x" => new NBT\Tag\Int("x", $this->x),
|
||||||
|
"y" => new NBT\Tag\Int("y", $this->y),
|
||||||
|
"z" =>new NBT\Tag\Int("z", $this->z)
|
||||||
|
));
|
||||||
|
$nbt->Items->setTagType(NBT\Tag_Compound);
|
||||||
|
$furnace = new Furnace($this->level, $nbt);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,13 +89,15 @@ class ChestBlock extends TransparentBlock{
|
|||||||
if($t instanceof Chest){
|
if($t instanceof Chest){
|
||||||
$chest = $t;
|
$chest = $t;
|
||||||
}else{
|
}else{
|
||||||
$chest = new Chest($this->level, new NBT\Tag\Compound(false, array(
|
$nbt = new NBT\Tag\Compound(false, array(
|
||||||
"Items" => new NBT\Tag\List("Items", array()),
|
"Items" => new NBT\Tag\Enum("Items", array()),
|
||||||
"id" => new NBT\Tag\String("id", Tile::CHEST),
|
"id" => new NBT\Tag\String("id", Tile::CHEST),
|
||||||
"x" => new NBT\Tag\Int("x", $this->x),
|
"x" => new NBT\Tag\Int("x", $this->x),
|
||||||
"y" => new NBT\Tag\Int("y", $this->y),
|
"y" => new NBT\Tag\Int("y", $this->y),
|
||||||
"z" =>new NBT\Tag\Int("z", $this->z)
|
"z" =>new NBT\Tag\Int("z", $this->z)
|
||||||
)));
|
));
|
||||||
|
$nbt->Items->setTagType(NBT\Tag_Compound);
|
||||||
|
$chest = new Chest($this->level, $nbt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user