mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Allow mipmap lowering to be disabled (#10254)
This commit is contained in:
1 parent
c24aff8a53
commit
da2f435810
3 files changed
+14
-1
No files matched your search
@@ -91,6 +91,8 @@ public class ForgeConfig {
|
||||
|
||||
public final BooleanValue stabilizeDirectionGetNearest;
|
||||
|
||||
public final BooleanValue allowMipmapLowering;
|
||||
|
||||
|
||||
Client(ForgeConfigSpec.Builder builder) {
|
||||
builder.comment("Client only settings, mostly things related to rendering")
|
||||
@@ -132,6 +134,11 @@ public class ForgeConfig {
|
||||
.translation("forge.configgui.stabilizeDirectionGetNearest")
|
||||
.define("stabilizeDirectionGetNearest", true);
|
||||
|
||||
allowMipmapLowering = builder
|
||||
.comment("When enabled, Forge will allow mipmaps to be lowered in real-time. This is the default behavior in vanilla. Use this if you experience issues with resource packs that use textures lower than 8x8.")
|
||||
.translation("forge.configgui.allowMipmapLowering")
|
||||
.define("allowMipmapLowering", false);
|
||||
|
||||
builder.pop();
|
||||
}
|
||||
|
||||
@@ -144,6 +151,10 @@ public class ForgeConfig {
|
||||
public final boolean showLoadWarnings() {
|
||||
return clientSpec.isLoaded() ? showLoadWarnings.get() : showLoadWarnings.getDefault();
|
||||
}
|
||||
|
||||
public final boolean allowMipmapLowering() {
|
||||
return clientSpec.isLoaded() ? allowMipmapLowering.get() : allowMipmapLowering.getDefault();
|
||||
}
|
||||
}
|
||||
|
||||
static final ForgeConfigSpec clientSpec;
|
||||
|
||||
Reference in new issue
Block a user