mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 02:35:52 -07:00
SPIGOT-591: Optimize EntitySlice.iterator
Previously if the key 'this.c' was missing a new hashmap was created, this caused thousands to be created each tick
This commit is contained in:
10
nms-patches/EntitySliceInnerClass1.patch
Normal file
10
nms-patches/EntitySliceInnerClass1.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- ../work/decompile-8eb82bde/net/minecraft/server/EntitySliceInnerClass1.java 2015-02-20 10:18:41.853023875 +0000
|
||||
+++ src/main/java/net/minecraft/server/EntitySliceInnerClass1.java 2015-02-20 10:18:41.853023875 +0000
|
||||
@@ -3,6 +3,7 @@
|
||||
import com.google.common.collect.Iterators;
|
||||
import java.util.Iterator;
|
||||
|
||||
+// PAIL: Access transform
|
||||
class EntitySliceInnerClass1 implements Iterable {
|
||||
|
||||
final Class a;
|
Reference in New Issue
Block a user