mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Regenerate patches with relative headers. This should lower conflicts in future PRs.
Convert Forge to use Official mappings. Mojang released their obfuscation mappings but we have not used them up until now due to wanting to get their license to be more explicitly permissive. It is clear that their intent is to allow us to use their names for developing mods like this. See the full wording, and our interpretation here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
This commit is contained in:
1 parent
802298d99d
commit
a95b968c13
832 files changed
+4464
-4373
No files matched your search
@@ -52,14 +52,14 @@ public class VanillaHopperItemHandler extends InvWrapper
|
||||
|
||||
if (wasEmpty && originalStackSize > stack.getCount())
|
||||
{
|
||||
if (!hopper.mayTransfer())
|
||||
if (!hopper.isOnCustomCooldown())
|
||||
{
|
||||
// This cooldown is always set to 8 in vanilla with one exception:
|
||||
// Hopper -> Hopper transfer sets this cooldown to 7 when this hopper
|
||||
// has not been updated as recently as the one pushing items into it.
|
||||
// This vanilla behavior is preserved by VanillaInventoryCodeHooks#insertStack,
|
||||
// the cooldown is set properly by the hopper that is pushing items into this one.
|
||||
hopper.setTransferCooldown(8);
|
||||
hopper.setCooldown(8);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user