add light levels

This commit is contained in:
khj xiaogu 2021-12-03 17:32:12 +08:00
parent 58a3c6b846
commit 19c47c2b37
No known key found for this signature in database
GPG key ID: DEA172814EAFF426

View file

@ -63,7 +63,7 @@ public abstract class BurnerBlock extends Block {
public static final DirectionProperty FACING = BlockStateProperties.FACING;
public static final BooleanProperty REDSTONE_LOCKED = BooleanProperty.create("redstone_locked");
public BurnerBlock(Properties props) {
super(props);
super(props.lightLevel(s->s.getValue(LIT)?10:0));
}
@Override