diff options
Diffstat (limited to 'nms-patches/BlockShulkerBox.patch')
-rw-r--r-- | nms-patches/BlockShulkerBox.patch | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/nms-patches/BlockShulkerBox.patch b/nms-patches/BlockShulkerBox.patch index e292c35e..e0a5aaa3 100644 --- a/nms-patches/BlockShulkerBox.patch +++ b/nms-patches/BlockShulkerBox.patch @@ -1,16 +1,7 @@ --- a/net/minecraft/server/BlockShulkerBox.java +++ b/net/minecraft/server/BlockShulkerBox.java -@@ -3,7 +3,7 @@ - public class BlockShulkerBox extends BlockTileEntity { +@@ -92,7 +92,32 @@ - public static final BlockStateEnum<EnumDirection> a = BlockStateDirection.of("facing"); -- private final EnumColor b; -+ public final EnumColor b; // PAIL: public, rename - - public BlockShulkerBox(EnumColor enumcolor) { - super(Material.STONE, MaterialMapColor.b); -@@ -89,7 +89,32 @@ - tileentityshulkerbox.d(entityhuman); } - public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {} @@ -30,7 +21,7 @@ + itemstack.setTag(nbttagcompound); + if (tileentityshulkerbox.hasCustomName()) { + itemstack.g(tileentityshulkerbox.getName()); -+ tileentityshulkerbox.a(""); ++ tileentityshulkerbox.setCustomName(""); + } + + a(world, blockposition, itemstack); @@ -43,7 +34,7 @@ public void postPlace(World world, BlockPosition blockposition, IBlockData iblockdata, EntityLiving entityliving, ItemStack itemstack) { if (itemstack.hasName()) { -@@ -105,7 +130,7 @@ +@@ -108,7 +133,7 @@ public void remove(World world, BlockPosition blockposition, IBlockData iblockdata) { TileEntity tileentity = world.getTileEntity(blockposition); @@ -52,7 +43,7 @@ TileEntityShulkerBox tileentityshulkerbox = (TileEntityShulkerBox) tileentity; if (!tileentityshulkerbox.r() && tileentityshulkerbox.F()) { -@@ -123,8 +148,8 @@ +@@ -126,8 +151,8 @@ a(world, blockposition, itemstack); } |