mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Fixed collisions!
This commit is contained in:
parent
8b4a0281fe
commit
ec907580ad
@ -112,7 +112,8 @@ class PartCable extends Multipart with ISlottedPart with IOccludingPart with ISl
|
||||
|
||||
override def addCollisionBoxes(mask: AxisAlignedBB, list: util.List[AxisAlignedBB], collidingEntity: Entity): Unit = {
|
||||
if (getWorld != null) {
|
||||
list.add(Cable.bounds(getWorld, getPos)) //.offset(getPos.getX, getPos.getY, getPos.getZ))
|
||||
val bounds = Cable.bounds(getWorld, getPos)
|
||||
if (bounds.intersectsWith(mask)) list.add(bounds)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user