mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
Update AsyncSink.js
fix for the fix
This commit is contained in:
parent
8c0d5765e9
commit
99ee123897
@ -8,9 +8,8 @@ ModAPI.meta.credits("By ZXMushroom63");
|
|||||||
//AsyncSink is a plugin to debug and override asynchronous methods in EaglercraftX
|
//AsyncSink is a plugin to debug and override asynchronous methods in EaglercraftX
|
||||||
async function runtimeComponent() {
|
async function runtimeComponent() {
|
||||||
let booleanResult;
|
let booleanResult;
|
||||||
//jl_Boolean_valueOf-> 1.12, nlevit_BooleanResult__new-> 1.8
|
|
||||||
if (ModAPI.is_1_12) {
|
if (ModAPI.is_1_12) {
|
||||||
booleanResult = (b) => ModAPI.hooks.methods.jl_Boolean_valueOf(b * 1);
|
booleanResult = (b) = ModAPI.reflect.getClassById("net.lax1dude.eaglercraft.internal.teavm.BooleanResult").constructors[0](b*1);
|
||||||
} else {
|
} else {
|
||||||
booleanResult = (b) => ModAPI.hooks.methods.nlevit_BooleanResult__new(b * 1);
|
booleanResult = (b) => ModAPI.hooks.methods.nlevit_BooleanResult__new(b * 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user