Merge remote-tracking branch 'origin/1.12' into 1.12
This commit is contained in:
commit
2b864fd7fe
|
|
@ -62,6 +62,8 @@ import tschipp.carryon.network.server.SyncKeybindPacket;
|
|||
|
||||
public class RenderEvents
|
||||
{
|
||||
private boolean obfuscatePresent = Loader.isModLoaded("obfuscate");
|
||||
|
||||
private static boolean initModels;
|
||||
|
||||
/*
|
||||
|
|
@ -632,16 +634,23 @@ public class RenderEvents
|
|||
arm.isHidden = true;
|
||||
}
|
||||
|
||||
private boolean mobendsPresent = Loader.isModLoaded("mobends");
|
||||
|
||||
private boolean mobendsConfigLoaded = false;
|
||||
|
||||
private boolean mobendsPlayersAnimated = false;
|
||||
|
||||
public boolean handleMobends()
|
||||
{
|
||||
if (Loader.isModLoaded("mobends"))
|
||||
if (mobendsPresent && !mobendsConfigLoaded)
|
||||
{
|
||||
Configuration config = new Configuration(new File(CarryOn.CONFIGURATION_FILE.getPath().substring(0, CarryOn.CONFIGURATION_FILE.getPath().length() - 16), "mobends.cfg"));
|
||||
|
||||
boolean renderPlayer = config.get("animated", "player", true).getBoolean();
|
||||
return !renderPlayer;
|
||||
mobendsPlayersAnimated = config.get("animated", "player", true).getBoolean();
|
||||
mobendsConfigLoaded = true;
|
||||
}
|
||||
return true;
|
||||
|
||||
return !mobendsPlayersAnimated;
|
||||
}
|
||||
|
||||
public static boolean isChest(Block block)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user