mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
Fixed getting and setting of blocks in unloaded chunks
This commit is contained in:
@ -673,6 +673,13 @@ public class BukkitWorld extends LocalWorld {
|
||||
return type <= 255 && Material.getMaterial(type) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void checkLoadedChuck(Vector pt) {
|
||||
if (!world.isChunkLoaded(pt.getBlockX() >> 4, pt.getBlockZ() >> 4)) {
|
||||
world.loadChunk(pt.getBlockX() >> 4, pt.getBlockZ() >> 4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof BukkitWorld)) {
|
||||
|
Reference in New Issue
Block a user