some hitboxes tweaks

This commit is contained in:
GameHerobrine 2024-05-01 16:26:18 +03:00
parent 73a36a1ea2
commit 589922daaf
10 changed files with 28 additions and 7 deletions

View file

@ -11,7 +11,7 @@ class TrapdoorBlock extends TransparentBlock{
}
$this->hardness = 15;
}
//TODO collision box
public function canAttachTo(Block $target){
$id = $target->getID();
return $id === SLAB || $id === GLOWSTONE || $id === SLAB || $id === WOOD_SLAB || (!$target->isTransparent || $target instanceof StairBlock);