Skip to content

Commit

Permalink
Error with Nullius Rocket Recipes #468
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Jul 22, 2023
1 parent ebe82ff commit 1b5dc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function Player.checkFactoryLimitationModule(module, lua_recipe)
local prototype = RecipePrototype(lua_recipe)
local category = prototype:getCategory()
local rocket_part_recipe = Player.getRocketPartRecipe(lua_recipe.factory)
if category == rocket_part_recipe.category and lua_recipe.name ~= rocket_part_recipe.name then
if rocket_part_recipe and category == rocket_part_recipe.category and lua_recipe.name ~= rocket_part_recipe.name then
local rocket_recipe = RecipePrototype(rocket_part_recipe.name)
if rocket_recipe.lua_prototype ~= nil then
rocket_recipe.name = rocket_part_recipe.name
Expand Down

0 comments on commit 1b5dc1e

Please sign in to comment.