mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
some hitboxes tweaks
This commit is contained in:
parent
73a36a1ea2
commit
589922daaf
10 changed files with 28 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue