rollback the changes that were done to enable world collisions
@@ -710,16 +710,10 @@ private PairCachingGhostObject createCollider(Vector3f pos, ConvexShape shape, s
if (((CollisionObject) initialPair.pProxy1.clientObject).getUserPointer() instanceof EntityRef) {
otherEntity = (EntityRef) ((CollisionObject) initialPair.pProxy1.clientObject).getUserPointer();
}
- else if(((CollisionObject) initialPair.pProxy1.clientObject).getUserPointer() instanceof Vector3i){
- otherEntity = blockEntityRegistry.getEntityAt((Vector3i)((CollisionObject) initialPair.pProxy1.clientObject).getUserPointer());
- }
} else {
if (((CollisionObject) initialPair.pProxy0.clientObject).getUserPointer() instanceof EntityRef) {
otherEntity = (EntityRef) ((CollisionObject) initialPair.pProxy0.clientObject).getUserPointer();
}
- else if(((CollisionObject) initialPair.pProxy0.clientObject).getUserPointer() instanceof Vector3i){
- otherEntity = blockEntityRegistry.getEntityAt((Vector3i)((CollisionObject) initialPair.pProxy0.clientObject).getUserPointer());
- }
}
if (otherEntity == null || otherEntity == EntityRef.NULL) {
continue;
