Skip to content
Browse files

Fix silk touch on Ender Chests.

  • Loading branch information...
1 parent 18f3d41 commit 895365d9b9435f045c393126555ca5e071a980fe @LexManos LexManos committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 patches/common/net/minecraft/src/Block.java.patch
View
14 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);
+ }

0 comments on commit 895365d

Please sign in to comment.
Something went wrong with that request. Please try again.