Should hopefully fix server crash #releaseBuild Fixes #1371

This commit is contained in:
modmuss50 2017-12-18 01:48:25 +00:00
parent 5be3163eeb
commit 677bb59ceb
4 changed files with 12 additions and 3 deletions

View file

@ -79,7 +79,7 @@ configurations {
compile.extendsFrom shade
}
version = "2.10.2"
version = "2.10.3"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {

View file

@ -29,7 +29,6 @@ import net.minecraft.block.BlockPlanks;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@ -41,6 +40,7 @@ import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import prospector.shootingstar.ShootingStar;
import prospector.shootingstar.model.ModelCompound;
import techreborn.Core;
import techreborn.client.TechRebornCreativeTabMisc;
import techreborn.init.ModBlocks;
import techreborn.lib.ModInfo;
@ -139,6 +139,6 @@ public class BlockRubberLeaves extends BlockLeaves {
}
public boolean fancyLeaves(){
return Minecraft.getMinecraft().gameSettings.fancyGraphics;
return Core.proxy.fancyGraphics();
}
}

View file

@ -107,4 +107,9 @@ public class ClientProxy extends CommonProxy {
return new RenderNukePrimed(manager);
}
}
@Override
public boolean fancyGraphics() {
return Minecraft.getMinecraft().gameSettings.fancyGraphics;
}
}

View file

@ -64,4 +64,8 @@ public class CommonProxy implements ICompatModule {
return "";
}
public boolean fancyGraphics(){
return true;
}
}