WraithNath Posted December 5, 2021 Share Posted December 5, 2021 Hello, I have been struggling with this issue for a few days. I am trying to create a recipe for Tea that requires a tea bag, and hot water, either from a WaterMug or a FullKettle. the recipe works when heat is not specified, but as soon as its added I get the following error when attempting to craft. Callframe at: IsRecipeValid function: isValid -- file: ISCraftAction.lua line # 10 Callframe at: StartAction function: begin -- file: ISBaseTimedAction.lua line # 71 function: onCompleted -- file: ISTimedActionQueue.lua line # 58 function: perform -- file: ISBaseTimedAction.lua line # 47 function: perform -- file: ISInventoryTransferAction.lua line # 285. ... java.lang.reflect.InvocationTargetException ... Caused by: java.lang.nullPointerException: Cannot invoke "java.util.ArrayList.iterator()" because "<paratermeter3" is null. after hours of debugging, I think this equates to the ItemContainer array list which is the 3rd parameter of the HasHeat function in the RecipieManager. Later in the function it tries to iterate the items in the container, but as its null it fails. Has anyone had this issue before or could assist me in getting this working? my items seem to be set up the same as sterilizing a bandage or ripped sheets. My Items are as follows: item EarlGreyTeabag { Weight = 0.01, Type = Food, HungerChange = -5, UnhappyChange = 10, ThirstChange = 10, FatigueChange = -15, DisplayName = Earl Grey Tea Bag, Icon = EarlGreyTeabag, FoodType = Tea, EvolvedRecipeName = Mug of Earl Grey Tea, } item TeaMug { Weight = 0.81, Type = Food, DisplayName = Mug of Tea, Icon = MugFulll, UnhappyChange = -5, ThirstChange = -10, StressChange = -5, ReplaceOnUse = Mugl, CustomContextMenu = Drink, CustomEatSound = DrinkingFromMug, GoodHot = true, BadCold = true, StaticModel = Mug, WorldStaticModel = Mug, EatType = Mug, } And My Recipes recipe Pepare Tea { destroy EarlGreyTeabag/PGTipsTeabag/BreakfastTeabag/LapsangSouchongTeabag/AssamTeabag, destroy WaterMug, Result:TeaMug, Time:100, Heat:-0.22, Category:Cooking, } recipe Pepare Tea { destroy EarlGreyTeabag/PGTipsTeabag/BreakfastTeabag/LapsangSouchongTeabag/AssamTeabag, destroy Mugl, FullKettle;3, Result:TeaMug, Time:100, Heat:-0.22, Category:Cooking, } Thank you. Link to comment Share on other sites More sharing options...
WraithNath Posted December 8, 2021 Author Share Posted December 8, 2021 Any Devs or mod developers read this forum or are contactable about this? I really want to be able to work on this mod and get it out there but stuck on this issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now