CraftTweaker

CraftTweaker

151M Downloads

ICraftingInfo in IRecipeFunction is not working

Weisstrieb opened this issue ยท 2 comments

commented

Issue Description:

If the parameter 'cinfo' (ICraftingInfo) is called, script is not working.

What happens:

(Case I)
sublime_text_2018-02-27_01-12-14

(Case II)
sublime_text_2018-02-27_01-18-55

(Case III)
Just in case, since world method in ICraftingInfo is likely to return null so that remote method cannot process, I remove the line 13 print(cinfo.world.remote as string), but same result above.

What you expected to happen:

In Case 2, IRecipeFunction should work, printing player's id and isRemote() result.

Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):

[Attached on screenshots]

Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):

[SERVER_STARTED][CLIENT][INFO] Fixed the RecipeBook
[SERVER_STARTED][CLIENT][INFO] New transform function is running. It'll return minecraft:apple
[SERVER_STARTED][SERVER][INFO] New transform function is running. It'll return minecraft:apple

(Case I. Initialization log is omitted since there is nothing special)

[SERVER_STARTED][CLIENT][INFO] Fixed the RecipeBook

(Case II & III. Initialization log is also omitted.)


Affected Versions (Do not use "latest"):

  • Minecraft: 1.12.2
  • Forge: 14.23.2.2618
  • Crafttweaker: 4.1.5

Your most recent log file where the issue was present:

https://pastebin.com/ZQQL8Lbk

commented

@estiv
Are you in the CrT discord or anything so I can send you something to test?

commented

I'll join CrT Discord