funni js (#6566)
This commit is contained in:
@@ -79,9 +79,10 @@ public interface Platform{
|
||||
}
|
||||
|
||||
default Context getScriptContext(){
|
||||
Context c = Context.enter();
|
||||
c.setOptimizationLevel(9);
|
||||
return c;
|
||||
Context context = Context.getCurrentContext();
|
||||
if(context == null) context = Context.enter();
|
||||
context.setOptimizationLevel(9);
|
||||
return context;
|
||||
}
|
||||
|
||||
/** Update discord RPC. */
|
||||
|
||||
Reference in New Issue
Block a user