mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Fix some config checks still using the old fields (#6193)
This commit is contained in:
1 parent
a8bd5e7ece
commit
c98abaaa42
6 files changed
+19
-13
No files matched your search
@@ -255,7 +255,7 @@ public class ForgeHooksClient
|
||||
skyInit = true;
|
||||
|
||||
GameSettings settings = Minecraft.getInstance().gameSettings;
|
||||
int[] ranges = ForgeMod.blendRanges;
|
||||
int[] ranges = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34 };
|
||||
int distance = 0;
|
||||
if (settings.fancyGraphics && ranges.length > 0)
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.text.TranslationTextComponent;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.common.ForgeMod;
|
||||
import net.minecraftforge.fml.loading.FMLConfig;
|
||||
import net.minecraftforge.versions.forge.ForgeVersion;
|
||||
import net.minecraftforge.fml.VersionChecker;
|
||||
import net.minecraftforge.fml.client.ClientModLoader;
|
||||
@@ -66,7 +67,7 @@ public class NotificationModUpdateScreen extends Screen
|
||||
@Override
|
||||
public void render(int mouseX, int mouseY, float partialTicks)
|
||||
{
|
||||
if (showNotification == null || !showNotification.shouldDraw() || ForgeMod.disableVersionCheck)
|
||||
if (showNotification == null || !showNotification.shouldDraw() || !FMLConfig.runVersionCheck())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||
import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.common.ForgeConfig;
|
||||
import net.minecraftforge.common.ForgeMod;
|
||||
import net.minecraftforge.common.model.IModelState;
|
||||
import net.minecraftforge.common.model.TRSRTransformation;
|
||||
@@ -209,7 +210,7 @@ final class FancyMissingModel implements IUnbakedModel
|
||||
case HEAD:
|
||||
break;
|
||||
case GUI:
|
||||
if (ForgeMod.zoomInMissingModelTextInGui)
|
||||
if (ForgeConfig.CLIENT.zoomInMissingModelTextInGui.get())
|
||||
{
|
||||
transform = new TRSRTransformation(null, new Quat4f(1, 1, 1, 1), new Vector3f(4, 4, 4), null);
|
||||
big = false;
|
||||
|
||||
@@ -32,10 +32,8 @@ import net.minecraft.client.renderer.color.BlockColors;
|
||||
import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IEnviromentBlockReader;
|
||||
import net.minecraft.world.IWorldReader;
|
||||
import net.minecraft.world.IWorldReader;
|
||||
import net.minecraftforge.client.model.data.IModelData;
|
||||
import net.minecraftforge.common.ForgeMod;
|
||||
import net.minecraftforge.common.ForgeConfig;
|
||||
|
||||
public class ForgeBlockModelRenderer extends BlockModelRenderer
|
||||
{
|
||||
@@ -54,7 +52,7 @@ public class ForgeBlockModelRenderer extends BlockModelRenderer
|
||||
@Override
|
||||
public boolean renderModelFlat(IEnviromentBlockReader world, IBakedModel model, BlockState state, BlockPos pos, BufferBuilder buffer, boolean checkSides, Random rand, long seed, IModelData modelData)
|
||||
{
|
||||
if(ForgeMod.forgeLightPipelineEnabled)
|
||||
if(ForgeConfig.CLIENT.forgeLightPipelineEnabled.get())
|
||||
{
|
||||
VertexBufferConsumer consumer = consumerFlat.get();
|
||||
consumer.setBuffer(buffer);
|
||||
@@ -74,7 +72,7 @@ public class ForgeBlockModelRenderer extends BlockModelRenderer
|
||||
@Override
|
||||
public boolean renderModelSmooth(IEnviromentBlockReader world, IBakedModel model, BlockState state, BlockPos pos, BufferBuilder buffer, boolean checkSides, Random rand, long seed, IModelData modelData)
|
||||
{
|
||||
if(ForgeMod.forgeLightPipelineEnabled)
|
||||
if(ForgeConfig.CLIENT.forgeLightPipelineEnabled.get())
|
||||
{
|
||||
VertexBufferConsumer consumer = consumerSmooth.get();
|
||||
consumer.setBuffer(buffer);
|
||||
|
||||
Reference in new issue
Block a user