1
0
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:
SquidDev 2017-05-01 15:20:45 +01:00
parent 34cb75dfc3
commit 9b5f4a877c

View File

@ -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