Fix Item transfers related to Hoppers.

This commit is contained in:
LexManos committed 2016-11-18 14:42:22 -08:00
1 parent 668bf47337
commit f12a4b5c1e
6 files changed
+29 -12

No files matched your search

@@ -40,16 +40,16 @@ public class VanillaHopperItemHandler extends InvWrapper
public ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate)
{
if (stack.func_190926_b())
return null;
// if (simulate || !hopper.mayTransfer())
// return super.insertItem(slot, stack, simulate);
return ItemStack.field_190927_a;
if (simulate || !hopper.mayTransfer())
return super.insertItem(slot, stack, simulate);
int curStackSize = stack.func_190916_E();
ItemStack itemStack = super.insertItem(slot, stack, false);
// if (itemStack == null || curStackSize != itemStack.func_190916_E())
// {
// hopper.setTransferCooldown(8);
// }
if (itemStack.func_190926_b() || curStackSize != itemStack.func_190916_E())
{
hopper.setTransferCooldown(8);
}
return itemStack;
}
}