mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 13:53:50 +01:00
Implement #4534 as configurable multipliers
This commit is contained in:
parent
9e3140938b
commit
b4a8386cd8
2 changed files with 14 additions and 3 deletions
|
@ -319,14 +319,14 @@ public class ClientEvents {
|
|||
|
||||
if (AllFluids.CHOCOLATE.get()
|
||||
.isSame(fluid)) {
|
||||
event.scaleFarPlaneDistance(1f / 32f);
|
||||
event.scaleFarPlaneDistance(1f / 32f * AllConfigs.CLIENT.chocolateTransparencyMultiplier.getF());
|
||||
event.setCanceled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (AllFluids.HONEY.get()
|
||||
.isSame(fluid)) {
|
||||
event.scaleFarPlaneDistance(1f / 8f);
|
||||
event.scaleFarPlaneDistance(1f / 8f * AllConfigs.CLIENT.honeyTransparencyMultiplier.getF());
|
||||
event.setCanceled(true);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,13 @@ public class CClient extends ConfigBase {
|
|||
public final ConfigBool ignoreFabulousWarning = b(false, "ignoreFabulousWarning",
|
||||
Comments.ignoreFabulousWarning);
|
||||
|
||||
// custom fluid fog
|
||||
public final ConfigGroup fluidFogSettings = group(1, "fluidFogSettings", Comments.fluidFogSettings);
|
||||
public final ConfigFloat honeyTransparencyMultiplier =
|
||||
f(1, .125f, 256, "honey", Comments.honeyTransparencyMultiplier);
|
||||
public final ConfigFloat chocolateTransparencyMultiplier =
|
||||
f(1, .125f, 256, "chocolate", Comments.chocolateTransparencyMultiplier);
|
||||
|
||||
//overlay group
|
||||
public final ConfigGroup overlay = group(1, "goggleOverlay",
|
||||
Comments.overlay);
|
||||
|
@ -147,6 +154,10 @@ public class CClient extends ConfigBase {
|
|||
static String trains = "Railway related settings";
|
||||
static String mountedZoomMultiplier = "How far away the Camera should zoom when seated on a train";
|
||||
static String showTrackGraphOnF3 = "Display nodes and edges of a Railway Network while f3 debug mode is active";
|
||||
|
||||
static String fluidFogSettings = "Configure your vision range when submerged in Create's custom fluids";
|
||||
static String honeyTransparencyMultiplier = "The vision range through honey will be multiplied by this factor";
|
||||
static String chocolateTransparencyMultiplier = "The vision range though chocolate will be multiplied by this factor";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue