mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-18 19:39:12 +00:00
Abort cloak render with Optifine.
This commit is contained in:
1 parent
e763bb6363
commit
cc241aab67
2 files changed
+7
-2
No files matched your search
@@ -10,6 +10,7 @@ import javax.swing.ImageIcon;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraftforge.client.event.RenderPlayerEvent;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
import tconstruct.util.EnvironmentChecks;
|
||||
|
||||
public class EventCloakRender
|
||||
{
|
||||
@@ -32,7 +33,7 @@ public class EventCloakRender
|
||||
@ForgeSubscribe
|
||||
public void onPreRenderSpecials (RenderPlayerEvent.Specials.Pre event)
|
||||
{
|
||||
if (Loader.isModLoaded("shadersmod"))
|
||||
if (Loader.isModLoaded("shadersmod") || EnvironmentChecks.hasOptifine)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user