mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-26 04:36:00 +01:00
Assert if worlds are null. They should never be.
This commit is contained in:
parent
f96ff088be
commit
88e44c9e1d
@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@ -103,10 +104,10 @@ public class AcidTask {
|
||||
List<Entity> entityStream = new ArrayList<>(addon.getOverWorld().getEntities());
|
||||
// Nether and end
|
||||
if (addon.getSettings().isNetherGenerate() && addon.getSettings().isNetherIslands()) {
|
||||
entityStream.addAll(addon.getNetherWorld().getEntities());
|
||||
entityStream.addAll(Objects.requireNonNull(addon.getNetherWorld()).getEntities());
|
||||
}
|
||||
if (addon.getSettings().isEndGenerate() && addon.getSettings().isEndIslands()) {
|
||||
entityStream.addAll(addon.getEndWorld().getEntities());
|
||||
entityStream.addAll(Objects.requireNonNull(addon.getEndWorld()).getEntities());
|
||||
}
|
||||
return entityStream;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user