Skip to content

Commit

Permalink
Fix issue introduced by 4123edd
Browse files Browse the repository at this point in the history
lastValue may be null at this point, old is not
  • Loading branch information
octylFractal committed Aug 29, 2020
1 parent 232ced8 commit 7f82a7d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit 7f82a7d

Please sign in to comment.