Improve cigarette code and fix lamp inversion

This commit is contained in:
Andrew-71 2023-08-26 13:45:36 +03:00
parent 264099fef0
commit 57c72c08de
7 changed files with 12 additions and 16 deletions

View file

@ -35,7 +35,7 @@ public class LampBlock extends Block implements Waterloggable {
public LampBlock(AbstractBlock.Settings settings) {
super(settings.luminance((BlockState state) -> {
if (!state.get(INVERTED)) {
if (state.get(INVERTED)) {
return state.get(ON) ? 12 : 0;
} else {
return state.get(ON) ? 0 : 12;