mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-30 17:17:55 +00:00
Fix null bounding box being returned
Its usage is not always checked for null, so it is safer to return a full block.
This commit is contained in:
@@ -204,7 +204,7 @@ public abstract class BlockGeneric extends Block implements
|
||||
TileGeneric generic = (TileGeneric)tile;
|
||||
return generic.getBounds();
|
||||
}
|
||||
return NULL_AABB;
|
||||
return FULL_BLOCK_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -237,7 +237,7 @@ public abstract class BlockGeneric extends Block implements
|
||||
return aabb;
|
||||
}
|
||||
}
|
||||
return NULL_AABB;
|
||||
return FULL_BLOCK_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user