Update Ladder.php

This commit is contained in:
kotyara 2022-05-10 11:56:05 +05:00 • committed by GitHub
parent 852ead08d4
commit c70b00df60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,6 @@ class LadderBlock extends TransparentBlock{
5 => 4,
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
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem($this->id, 0, 1));
$this->level->setBlock($this, new AirBlock(), true, false, true);
@ -64,4 +62,4 @@ class LadderBlock extends TransparentBlock{
array($this->id, 0, 1),
);
}
}
}