mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Merge pull request #2468 from nallar/master
Workaround JDK-8087309: Constant folding "static final boolean" is incomplete
This commit is contained in:
commit
94f99faf87
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