From 895365d9b9435f045c393126555ca5e071a980fe Mon Sep 17 00:00:00 2001 From: LexManos Date: Tue, 28 Aug 2012 16:36:19 -0700 Subject: [PATCH] Fix silk touch on Ender Chests. --- patches/common/net/minecraft/src/Block.java.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/patches/common/net/minecraft/src/Block.java.patch b/patches/common/net/minecraft/src/Block.java.patch index 4915b0374..401b0fccb 100644 --- a/patches/common/net/minecraft/src/Block.java.patch +++ b/patches/common/net/minecraft/src/Block.java.patch @@ -429,11 +429,11 @@ + int count = quantityDropped(metadata, fortune, world.rand); + for(int i = 0; i < count; i++) + { -+ int id = idDropped(metadata, world.rand, 0); -+ if (id > 0) -+ { -+ ret.add(new ItemStack(id, 1, damageDropped(metadata))); -+ } ++ int id = idDropped(metadata, world.rand, 0); ++ if (id > 0) ++ { ++ ret.add(new ItemStack(id, 1, damageDropped(metadata))); ++ } + } + return ret; + } @@ -451,9 +451,9 @@ + */ + public boolean canSilkHarvest(World world, EntityPlayer player, int x, int y, int z, int metadata) + { -+ if (this instanceof BlockGlass) ++ if (this instanceof BlockGlass || this instanceof BlockEnderChest) + { -+ return true; ++ return true; + } + return renderAsNormalBlock() && !hasTileEntity(metadata); + }