mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 12:36:07 +01:00
comment out the other update call instead
otherwise might break stuff
This commit is contained in:
parent
28bf70ee16
commit
242ddc939b
@ -1,4 +1,4 @@
|
||||
From e256058fb406f77efef961c8d27933efc474cf07 Mon Sep 17 00:00:00 2001
|
||||
From aa73526a81df5b7120cf6c8384b7a5840c46e00d Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Wed, 27 Apr 2016 22:09:52 -0400
|
||||
Subject: [PATCH] Improve Minecraft Hopper Performance
|
||||
@ -27,7 +27,7 @@ index f579d28..6962c1b 100644
|
||||
|
||||
this.h = iblockdata.getBlock().toLegacyData(iblockdata);
|
||||
diff --git a/src/main/java/net/minecraft/server/TileEntityHopper.java b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
index 243da36..d5cf8a7 100644
|
||||
index 243da36..68d096f 100644
|
||||
--- a/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntityHopper.java
|
||||
@@ -185,12 +185,15 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi
|
||||
@ -56,15 +56,15 @@ index 243da36..d5cf8a7 100644
|
||||
itemstack = null;
|
||||
flag = true;
|
||||
} else if (a(itemstack1, itemstack)) {
|
||||
@@ -508,7 +513,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi
|
||||
iinventory.update();
|
||||
@@ -505,7 +510,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi
|
||||
tileentityhopper.setCooldown(tileentityhopper.world.spigotConfig.hopperTransfer); // Spigot
|
||||
}
|
||||
|
||||
- iinventory.update();
|
||||
+ //iinventory.update(); // Paper
|
||||
}
|
||||
|
||||
- iinventory.update();
|
||||
+ //iinventory.update(); // Paper
|
||||
}
|
||||
}
|
||||
|
||||
iinventory.update();
|
||||
@@ -580,6 +585,7 @@ public class TileEntityHopper extends TileEntityLootable implements IHopper, ITi
|
||||
this.g = i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user