mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 21:59:05 +00:00
Fixed scripted block AABB collision
This commit is contained in:
1 parent
9fb58981c4
commit
7602f7509a
1 file changed
+2
-2
@@ -42,7 +42,7 @@ public class BlockScripted extends BlockContainer {
|
||||
TileScripted tile = (TileScripted) world.getTileEntity(x, y, z);
|
||||
if (tile != null && tile.isPassible)
|
||||
return AABB_EMPTY;
|
||||
return AABB;
|
||||
return AABB.getOffsetBoundingBox(x,y,z);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -50,7 +50,7 @@ public class BlockScripted extends BlockContainer {
|
||||
TileScripted tile = (TileScripted) world.getTileEntity(x, y, z);
|
||||
if (tile != null && tile.isPassible)
|
||||
return AABB_EMPTY;
|
||||
return AABB;
|
||||
return AABB.getOffsetBoundingBox(x,y,z);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user