mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Mod flowers bounding boxes now match their shift, like vanilla flowers
This commit is contained in:
2 files changed
+2
-9
No files matched your search
@@ -82,7 +82,7 @@ public class BlockModFlower extends BlockFlower implements ILexiconable, IPickup
|
||||
@Nonnull
|
||||
@Override
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos) {
|
||||
return AABB;
|
||||
return AABB.move(state.getOffset(world, pos));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
|
||||
@@ -136,7 +136,7 @@ public class BlockSpecialFlower extends BlockFlower implements ISpecialFlower, I
|
||||
@Nonnull
|
||||
@Override
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, @Nonnull IBlockAccess world, @Nonnull BlockPos pos) {
|
||||
return AABB;
|
||||
return AABB.move(state.getOffset(world, pos));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@@ -205,13 +205,6 @@ public class BlockSpecialFlower extends BlockFlower implements ISpecialFlower, I
|
||||
return true;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Nonnull
|
||||
@Override
|
||||
public BlockRenderLayer getBlockLayer() {
|
||||
return BlockRenderLayer.CUTOUT;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Override
|
||||
public void getSubBlocks(@Nonnull Item item, CreativeTabs tab, @Nonnull NonNullList<ItemStack> stacks) {
|
||||
|
||||
Reference in new issue
Block a user