mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-24 05:54:41 +00:00
Fix silk touch on Ender Chests.
This commit is contained in:
1 parent
18f3d41a5b
commit
895365d9b9
1 file changed
+7
-7
@@ -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);
|
||||
+ }
|
||||
|
||||
Reference in new issue
Block a user