Actually support disabling chunk loading extent

This commit is contained in:
Matthew Miller 2019-01-22 21:34:14 +10:00
parent 4d209afc0c
commit 2e0fa300b7

View File

@ -62,7 +62,9 @@ public class ChunkLoadingExtent extends AbstractDelegateExtent {
@Override
public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 location, B block) throws WorldEditException {
world.checkLoadedChunk(location);
if (enabled) {
world.checkLoadedChunk(location);
}
return super.setBlock(location, block);
}
}