Custom item transformer issue
Weisstrieb opened this issue ยท 3 comments
Issue Description:
Custom item transformer doesn't work intentionally.
What happens:
What you expected to happen:
- Other ingredients should not return.
- Ingredient that has its own transformer should not disappear. (apple in the video above)
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Building registry
[INITIALIZATION][CLIENT][INFO] CraftTweaker: Successfully built item registry
[INITIALIZATION][CLIENT][INFO] Loading scripts
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: remittance.zs}
[INITIALIZATION][CLIENT][INFO] [crafttweaker | SIDE_CLIENT]: Loading Script: {[0:crafttweaker]: test.zs}
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name satchel_deposit.0
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name satchel_deposit.1
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name satchel_deposit.2
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name satchel_deposit.3
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name satchel_deposit.4
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Credit Card with name cache_deposit.0
[POSTINITIALIZATION][CLIENT][INFO] Adding shapeless recipe for Sand with name test_1
[SERVER_STARTED][CLIENT][INFO] Fixed the RecipeBook
This is end.
Affected Versions (Do not use "latest"):
- Minecraft: 1.12.2
- Forge: 14.23.2.2618
- Crafttweaker: 4.1.4
Please test if that issue persists in the latest CrT release (release ~15h ago)
I recommend switching to the new IItemTransformer though, since the old one will most likely become deprecated in 1.13 syntax is
ingredient.transformNew(function(item){
//return item to stay in the grid
return item;
});
IItemTransformer works fine as I expected, but ICraftingInfo parameter in IRecipeFunction doesn't seem to be working in new version(4.1.5). I'll open new issue.