This commit is contained in:
Jordan 2023-06-13 19:12:24 +02:00 committed by GitHub
parent d9463ce8b5
commit 79a2c14caa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,13 +676,13 @@ public class BukkitWorld extends AbstractWorld {
@Override @Override
public void refreshChunk(int chunkX, int chunkZ) { public void refreshChunk(int chunkX, int chunkZ) {
testCoords(BlockVector3.at(chunkX << 16, 0, chunkZ << 16)); testCoords(BlockVector3.at(chunkX << 4, 0, chunkZ << 4));
getWorld().refreshChunk(chunkX, chunkZ); getWorld().refreshChunk(chunkX, chunkZ);
} }
@Override @Override
public IChunkGet get(int chunkX, int chunkZ) { public IChunkGet get(int chunkX, int chunkZ) {
testCoords(BlockVector3.at(chunkX << 16, 0, chunkZ << 16)); testCoords(BlockVector3.at(chunkX << 4, 0, chunkZ << 4));
return WorldEditPlugin.getInstance().getBukkitImplAdapter().get(getWorldChecked(), chunkX, chunkZ); return WorldEditPlugin.getInstance().getBukkitImplAdapter().get(getWorldChecked(), chunkX, chunkZ);
} }