mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 05:29:44 +00:00
Update Ladder.php
This commit is contained in:
parent
852ead08d4
commit
c70b00df60
1 changed files with 1 additions and 3 deletions
|
|
@ -48,8 +48,6 @@ class LadderBlock extends TransparentBlock{
|
||||||
5 => 4,
|
5 => 4,
|
||||||
4 => 5,
|
4 => 5,
|
||||||
);
|
);
|
||||||
//$b = $this->getSide($this->meta); Debug stuff
|
|
||||||
//console($b->x . " " . $b->y . " " . $b->z . " " . $b . " meta->>" . $this->meta . "-uwu-" . $faces[$side]);
|
|
||||||
if($this->getSide($faces[$side]) instanceof AirBlock){ //Replace with common break method
|
if($this->getSide($faces[$side]) instanceof AirBlock){ //Replace with common break method
|
||||||
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, 0, 1));
|
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, 0, 1));
|
||||||
$this->level->setBlock($this, new AirBlock(), true, false, true);
|
$this->level->setBlock($this, new AirBlock(), true, false, true);
|
||||||
|
|
@ -64,4 +62,4 @@ class LadderBlock extends TransparentBlock{
|
||||||
array($this->id, 0, 1),
|
array($this->id, 0, 1),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue