Fix issue introduced by 4123eddff

lastValue may be null at this point, old is not
This commit is contained in:
Octavia Togami 2020-08-28 18:10:08 -07:00
parent 232ced85c0
commit 7f82a7d666
No known key found for this signature in database
GPG Key ID: CC364524D1983C99

View File

@ -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;