mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
Apply Vazkii's fix for a certain GUI mod.
This commit is contained in:
1 parent
b507ea7470
commit
2450c177f2
1 file changed
+2
-1
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user