Apply Vazkii's fix for a certain GUI mod.

This commit is contained in:
Sunstrike committed 2013-10-19 20:40:00 +01:00
1 parent b507ea7470
commit 2450c177f2
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,6 @@
package tconstruct.client;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.relauncher.*;
import java.util.Random;
import net.minecraft.block.Block;
@@ -79,7 +80,7 @@ public class TClientEvents
@ForgeSubscribe
public void renderHealthbar (RenderGameOverlayEvent.Pre event)
{
if (event.type == ElementType.HEALTH)
if (event.type == ElementType.HEALTH && !Loader.isModLoaded("tukmc_Vz")) // Loader check to avoid conflicting with a GUI mod (thanks Vazkii!)
{
event.setCanceled(true);
updateCounter++;