mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Workaround JDK-8087309: Constant folding "static final boolean" in boolean expressions is incomplete
This commit is contained in:
1 parent
06130912c5
commit
ccf5da2113
1 file changed
+2
-8
@@ -40,14 +40,8 @@ public class ASMEventHandler implements IEventListener
|
||||
@Override
|
||||
public void invoke(Event event)
|
||||
{
|
||||
if (owner != null && GETCONTEXT)
|
||||
{
|
||||
ThreadContext.put("mod", owner.getName());
|
||||
}
|
||||
else if (GETCONTEXT)
|
||||
{
|
||||
ThreadContext.put("mod", "");
|
||||
}
|
||||
if (GETCONTEXT)
|
||||
ThreadContext.put("mod", owner == null ? "" : owner.getName());
|
||||
if (handler != null)
|
||||
{
|
||||
if (!event.isCancelable() || !event.isCanceled() || subInfo.receiveCanceled())
|
||||
|
||||
Reference in new issue
Block a user