mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-06 12:16:11 +08:00
Actually support disabling chunk loading extent
This commit is contained in:
parent
4d209afc0c
commit
2e0fa300b7
@ -62,7 +62,9 @@ public ChunkLoadingExtent(Extent extent, World world) {
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user