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

@ -27,7 +27,7 @@ public class CavePumpkinBlock extends BlockBaseNotFull implements IRenderTypeabl
private static final VoxelShape SHAPE_BIG;
public CavePumpkinBlock() {
super(FabricBlockSettings.copyOf(Blocks.PUMPKIN).lightLevel((state) -> state.getValue(SMALL) ? 10 : 15));
super(FabricBlockSettings.copyOf(Blocks.PUMPKIN).luminance((state) -> state.getValue(SMALL) ? 10 : 15));
registerDefaultState(defaultBlockState().setValue(SMALL, false));
}