mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
Fix Item transfers related to Hoppers.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user