Small fixes

This commit is contained in:
paulevsGitch 2021-03-18 01:42:11 +03:00
parent a89b2d7d18
commit abefc062ee
9 changed files with 25 additions and 26 deletions

View file

@ -43,7 +43,7 @@ public class EndPortalBlock extends NetherPortalBlock implements IRenderTypeable
public static final IntProperty PORTAL = BlockProperties.PORTAL;
public EndPortalBlock() {
super(FabricBlockSettings.copyOf(Blocks.NETHER_PORTAL).resistance(Blocks.BEDROCK.getBlastResistance()).luminance(state -> 12));
super(FabricBlockSettings.copyOf(Blocks.NETHER_PORTAL).resistance(Blocks.BEDROCK.getBlastResistance()).luminance(15));
}
@Override

View file

@ -33,7 +33,7 @@ public class LayerOptions {
}
private float clampCoverage(float value) {
return MathHelper.clamp(value, 0, 1) * 2 - 1;
return 0.9999F - MathHelper.clamp(value, 0, 1) * 2;
}
private int clampCenter(int value) {