Jump to content

Bug of the mod or bug of the game?


Recommended Posts

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
Link to comment
Share on other sites

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
 Share

×
  • Create New...