9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 12:09:07 +00:00

More SPEED

This commit is contained in:
Daniel Mills
2020-09-11 11:06:32 -04:00
parent be6739ecb8
commit 1618d54b70
18 changed files with 199 additions and 122 deletions

View File

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

View File

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