mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Not worth,
This commit is contained in:
@@ -130,6 +130,10 @@ public class CrudeIncrementalIntIdentityHashBiMap<K> implements IdMap<K> {
|
||||
private int indexOf(K var0, int var1) {
|
||||
int var2;
|
||||
for (var2 = var1; var2 < this.keys.length; var2++) {
|
||||
if (this.keys[var2] == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (this.keys[var2].equals(var0))
|
||||
return var2;
|
||||
if (this.keys[var2] == EMPTY_SLOT)
|
||||
|
||||
@@ -71,6 +71,11 @@ public class HashMapPalette<T> implements Palette<T> {
|
||||
|
||||
@Override
|
||||
public void write(List<T> toList) {
|
||||
this.values.iterator().forEachRemaining(toList::add);
|
||||
this.values.iterator().forEachRemaining(i -> {
|
||||
if(i != null)
|
||||
{
|
||||
toList.add(i);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public class LinearPalette<T> implements Palette<T> {
|
||||
return var1;
|
||||
}
|
||||
|
||||
if (this.values[var1].equals(var0))
|
||||
if (this.values[var1] != null && this.values[var1].equals(var0))
|
||||
{
|
||||
return var1;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ public class PalettedContainer<T> implements PaletteResize<T> {
|
||||
|
||||
public PalettedContainer() {
|
||||
setBits(4);
|
||||
|
||||
}
|
||||
|
||||
private static int getIndex(int var0, int var1, int var2) {
|
||||
|
||||
Reference in New Issue
Block a user