From 60185a56161468420f23e9c7b0694381546e67b7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 15 Jul 2018 19:52:26 +1000 Subject: [PATCH] Validate world in CraftServer.createChunkData --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index db82051c25..91c239a127 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1684,6 +1684,7 @@ public final class CraftServer implements Server { @Override public ChunkGenerator.ChunkData createChunkData(World world) { + Validate.notNull(world, "World cannot be null"); return new CraftChunkData(world); }