Actually support disabling chunk loading extent

Dieser Commit ist enthalten in:
Matthew Miller 2019-01-22 21:34:14 +10:00
Ursprung 4d209afc0c
Commit 2e0fa300b7

Datei anzeigen

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