Short Lmap Bounds

This commit is contained in:
Kam committed 2025-02-15 17:26:59 -05:00
1 parent 114d9d0941
commit 1ca70be090
2 files changed
+12 -3

No files matched your search

@@ -33,6 +33,7 @@ public class BlockShortLamp extends BlockContainer {
public BlockShortLamp() {
super(Material.wood);
setLightLevel(1);
setBlockBounds(0.25f, 0, 0.25f, 0.75f, 1, 0.75f);
}
@Override
@@ -85,8 +86,7 @@ public class BlockShortLamp extends BlockContainer {
@Override
public void setBlockBoundsBasedOnState(IBlockAccess world, int x, int y, int z) {
// Always one block tall.
setBlockBounds(0, 0, 0, 1, 1, 1);
setBlockBounds(0.25f, 0, 0.25f, 0.75f, 1, 0.75f);
}
@Override
@@ -1,3 +1,12 @@
package noppes.npcs.blocks.tiles;
public class TileShortLamp extends TileColorable { }
import net.minecraft.util.AxisAlignedBB;
public class TileShortLamp extends TileColorable {
@Override
public AxisAlignedBB getRenderBoundingBox(){
return AxisAlignedBB.getBoundingBox(xCoord + 0.25f, yCoord, zCoord + 0.25f, xCoord + 0.75f, yCoord + 1, zCoord + 0.75f);
}
}