Replies: 1 comment
-
Ahh, it looks like this is on your 1.19.2 branch? I'm afraid you're probably bumping into dan200/ComputerCraft#125, which causes functions to be stripped when returned from a main-thread method. This has since been fixed (e7fe22d), but I'm afraid only in Minecraft 1.19.3+. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings
After more than four years of CC Addon development, I struggle to return an object to the user containing Lua functions
I am currently re-writing a lot of our RS and ME Bridge logic, including craft jobs. My idea was to return an object which contains functions to track the status of the job
https://github.com/IntelligenceModding/AdvancedPeripherals/blob/f87ff2938883b35ea41aed4e25adce7df3b8712e/src/main/java/de/srendi/advancedperipherals/common/addons/ae2/CraftJob.java#L69-L81
The javadocs of
MethodResult
saySo I did that
https://github.com/IntelligenceModding/AdvancedPeripherals/blob/f87ff2938883b35ea41aed4e25adce7df3b8712e/src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/MeBridgePeripheral.java#L588-L591
But every time I just get an empty table returned
I've tried to make the functions mainThread, I tried to mark the class as final
But I am not sure what I am missing here
Beta Was this translation helpful? Give feedback.
All reactions