Jump to content

Recommended Posts

35 minutes ago, penguin0616 said:

Must be done on both the client and server.

Would putting it in modmain.lua be enough or it needs something like?

if not GLOBAL.TheWorld.ismastersim then
	AllRecipes[recipe_name] = nil
else
	AllRecipes[recipe_name] = nil
end

 

also thanks :D!

  

2 minutes ago, --- -.- said:

Would putting it in modmain.lua be enough or it needs something like?



 

Yeah, modmain.lua is enough provided it's a server mod with all_clients_require_mod set to true in the modinfo.

  

2 minutes ago, --- -.- said:

also thanks :D!

You're welcome.

Edited by penguin0616
  • Thanks 1

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