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