mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-13 11:40:29 +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:
parent
34cb75dfc3
commit
9b5f4a877c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user