Archiviert
13
0

comment out the other update call instead

otherwise might break stuff
Dieser Commit ist enthalten in:
Aikar 2016-04-27 22:22:35 -04:00
Ursprung 28bf70ee16
Commit 242ddc939b

Datei anzeigen

@ -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;
}