Jump to content

Recommended Posts

It's a mod bug.

 

You can tell because a part of the stack traceback reads:

 

"../mods/RusMods/modmain.lua:308 in (field) fn (Lua) <281-314>"

 

If the stack traceback has anything to do with something connected to the mods folder, it's a mod bug.

Ahh I think I have understood... :-) It's a mod bug. Thank You.

 

This is correct code for my case:

			if not find_any_prefab(inst,"rocks",120) then				local rocks = _G.SpawnPrefab("rocks")				if rocks then					rocks.components.stackable.stacksize = 2					inst.components.inventory:GiveItem(rocks)				end			end

Edited by Maris

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