Jump to content

Typo in recipepopup.lua Causes Crash


Instant-Noodles
  • Fixed

The Year of the Clockwork Knight (712312) update modified recipepopup.lua & recipetile.lua, but there is a typo which is causing a crash.

On lines 605, 606, and 607 of widgets/recipepopup.lua, the game incorrectly references spinner_group.fgimage when it should actually be spinner_group.spinner.fgimage

As spinner_group.fgimage is incorrect and therefore nil, RecipeTile.sSetImageFromRecipe() on line 605 will cause line 37 of widgets/recipetile.lua to fail (and thereby crash the game) when it tries to set a tint on a nil value.

Changing spinner_group.fgimage to spinner_group.spinner.fgimage on line 605-607 in widgets/recipepopup.lua will fix the issue.

---

widgets/recipepopup.lua: L605-607

image.png.d5c3a960823dedbd61d3cc84868cacf0.png

widgets/recipetile.lua: L37

image.png.594f313c556f523c48de36d902b9dc2b.png


Steps to Reproduce

See above

  • Like 1



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...