Improve cigarette code and fix lamp inversion
This commit is contained in:
parent
264099fef0
commit
57c72c08de
7 changed files with 12 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue