Optimize Hoppers
- Lots of itemstack cloning removed. Only clone if the item is actually moved - Return true when a plugin cancels inventory move item event instead of false, as false causes pulls to cycle through all items. However, pushes do not exhibit the same behavior, so this is not something plugins could of been relying on. - Add option (Default on) to cooldown hoppers when they fail to move an item due to full inventory - Skip subsequent InventoryMoveItemEvents if a plugin does not use the item after first event fire for an iteration
This commit is contained in:
@@ -11,7 +11,7 @@ added, so we do not want any risk of performance degredation.
|
||||
Paper has a proper Timings system that makes the Vanilla Method profiler obsolete and inferior.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/CommandDebug.java b/src/main/java/net/minecraft/server/CommandDebug.java
|
||||
index 89708da9..7586168d 100644
|
||||
index 89708da96..7586168db 100644
|
||||
--- a/src/main/java/net/minecraft/server/CommandDebug.java
|
||||
+++ b/src/main/java/net/minecraft/server/CommandDebug.java
|
||||
@@ -0,0 +0,0 @@ public class CommandDebug extends CommandAbstract {
|
||||
@@ -40,7 +40,7 @@ index 89708da9..7586168d 100644
|
||||
|
||||
public List<String> tabComplete(MinecraftServer minecraftserver, ICommandListener icommandlistener, String[] astring, @Nullable BlockPosition blockposition) {
|
||||
diff --git a/src/main/java/net/minecraft/server/MethodProfiler.java b/src/main/java/net/minecraft/server/MethodProfiler.java
|
||||
index 480e2ca9..a76d5072 100644
|
||||
index 480e2ca97..a76d50723 100644
|
||||
--- a/src/main/java/net/minecraft/server/MethodProfiler.java
|
||||
+++ b/src/main/java/net/minecraft/server/MethodProfiler.java
|
||||
@@ -0,0 +0,0 @@ import java.util.function.Supplier;
|
||||
|
||||
Reference in New Issue
Block a user