Soul Filcher Posted May 31, 2018 Share Posted May 31, 2018 Cooking an item that has both ReplaceOnUse and ReplaceOnCooked item values closes the game and goes back to the main menu. In my opinion ReplaceOnUse should simply be ignored for this case. As an example you fill a cooking pot with food, and you want it to turn into a separate item when cooked, both the original and the resulting item should have ReplaceOnUse = Pot but right now if the original item has that line it causes the bug. Link to comment Share on other sites More sharing options...
EasyPickins Posted May 31, 2018 Share Posted May 31, 2018 Can you post the error from console.txt when this happens? Link to comment Share on other sites More sharing options...
Soul Filcher Posted May 31, 2018 Author Share Posted May 31, 2018 java.lang.NullPointerException at zombie.inventory.types.Food.update(Food.java:260) at zombie.iso.IsoCell.ProcessItems(IsoCell.java:1913) at zombie.iso.IsoCell.update(IsoCell.java:5726) at zombie.iso.IsoWorld.update(IsoWorld.java:3074) at zombie.gameStates.IngameState.update(IngameState.java:1322) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101) at zombie.GameWindow.logic(GameWindow.java:675) at zombie.GameWindow.run(GameWindow.java:1301) at zombie.GameWindow.maina(GameWindow.java:1077) at zombie.gameStates.MainScreenState.main(MainScreenState.java:183) I made some tests when trying to replicate it, and apparently the bugs doesn't happen when I test it overriding a base item (tried with Base.Egg), only with my own mymodule.Myitem. Link to comment Share on other sites More sharing options...
EasyPickins Posted June 1, 2018 Share Posted June 1, 2018 Looks like there is a bug with BadInMicrowave=true and ReplaceOnCooked in the same item. Link to comment Share on other sites More sharing options...
Soul Filcher Posted June 1, 2018 Author Share Posted June 1, 2018 Could be it, I think my item had BadInMicrowave=true. 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