mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-29 12:09:07 +00:00
More SPEED
This commit is contained in:
@@ -688,4 +688,15 @@ public class KList<T> extends ArrayList<T> implements List<T>
|
||||
add(t);
|
||||
}
|
||||
}
|
||||
|
||||
public void addAllIfMissing(KList<T> t)
|
||||
{
|
||||
for(T i : t)
|
||||
{
|
||||
if(!contains(i))
|
||||
{
|
||||
add(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,8 +80,9 @@ public class ParallaxChunk implements Writable
|
||||
|
||||
public void injectUpdates(AtomicSliver sliver, int x, int z)
|
||||
{
|
||||
for(Integer i : sliver.getUpdatables())
|
||||
for(Byte b : sliver.getUpdatables())
|
||||
{
|
||||
byte i = (byte) (b - Byte.MIN_VALUE);
|
||||
if(i > 255 || i < 0)
|
||||
{
|
||||
Iris.warn("Block Update out of bounds: " + i);
|
||||
|
||||
Reference in New Issue
Block a user