mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Fix issue introduced by 4123eddff
lastValue may be null at this point, old is not
This commit is contained in:
parent
232ced85c0
commit
7f82a7d666
@ -84,7 +84,7 @@ default <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 position,
|
||||
if (sideEffects.getState(SideEffect.LIGHTING) == SideEffect.State.ON) {
|
||||
updateLightingForBlock(pos);
|
||||
}
|
||||
markAndNotifyBlock(pos, chunk, lastValue, newState, sideEffects);
|
||||
markAndNotifyBlock(pos, chunk, old, newState, sideEffects);
|
||||
}
|
||||
|
||||
return successful;
|
||||
|
Loading…
Reference in New Issue
Block a user