Deprecated fuctions fix

This commit is contained in:
paulevsGitch 2021-04-20 14:14:49 +03:00
parent ba07b9959d
commit c418fc4d04
7 changed files with 7 additions and 9 deletions

View file

@ -86,7 +86,7 @@ public class PedestalBlock extends BlockBaseNotFull implements EntityBlock {
protected float height = 1.0F;
public PedestalBlock(Block parent) {
super(FabricBlockSettings.copyOf(parent).lightLevel(state -> state.getValue(HAS_LIGHT) ? 12 : 0));
super(FabricBlockSettings.copyOf(parent).luminance(state -> state.getValue(HAS_LIGHT) ? 12 : 0));
this.registerDefaultState(stateDefinition.any().setValue(STATE, PedestalState.DEFAULT).setValue(HAS_ITEM, false).setValue(HAS_LIGHT, false));
this.parent = parent;
}