Jump to content

Bug with New TechLevel in Builder


MAMjun
  • Pending

in the file   components/builder_replica.lua  line 237
"if recipe.level[v] > (bonus ~= nil and bonus:value() or 0) then"

and the file components/builder.lua  line 655


if a mod add a new techlevel and not fix all the recipes ,it will creah because of  recipe.level[v] is nil 

 

to fix this,it only need edit builder_replica.lua line 237 and builder.lua line 655 ,

eg. 

if (recipe.level[v] or 0)> (bonus ~= nil and bonus:value() or 0) then

 


Steps to Reproduce

insert new data into  "AVAILABLE_TECH"  in mod




User Feedback


There are no comments to display.



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...