mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 11:15:57 -07:00
Second part of NPE and arctan update :3
This commit is contained in:
@@ -6,6 +6,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import org.bukkit.craftbukkit.CraftWorld;
|
||||
|
||||
public class Chunk {
|
||||
|
||||
public static boolean a;
|
||||
@@ -44,7 +46,8 @@ public class Chunk {
|
||||
}
|
||||
|
||||
// CraftBukkit start
|
||||
bukkitChunk = ((WorldServer) world).getWorld().popPreservedChunk( i, j );
|
||||
CraftWorld cw = ((WorldServer) world).getWorld();
|
||||
bukkitChunk = (cw == null) ? null:cw.popPreservedChunk( i, j );
|
||||
if (bukkitChunk == null) {
|
||||
bukkitChunk = new org.bukkit.craftbukkit.CraftChunk( this );
|
||||
}
|
||||
|
Reference in New Issue
Block a user