Fixed crash upon joining a world

This commit is contained in:
Sollace 2021-12-22 11:15:21 +02:00
parent 2cae459eb8
commit aec9692439

View file

@ -79,7 +79,7 @@ public class NetworkedReferenceSet<T> {
ids.stream().filter(id -> !incoming.contains(id)).forEach(this::removeReference);
boolean[] send = new boolean[0];
boolean[] send = new boolean[1];
incoming.forEach(kept -> {
NetworkedReference<T> i = addReference(kept);
send[0] |= i.fromNbt(comp.getCompound(kept.toString()));