Jump to content

cave is running function only ment for the master


Recommended Posts

I currently have a bit of trouble =D apparently I got something wrong.

now I'm wondering: what do I achieve from doing a "if world.ismastersim" check?

In my naivity I assumed this would refer to the master shard. Well apparently that is not the case cause one of the critical parts of the code gets exectuted by the cave as well D: and thus when I order a write to file it is either done twice and the two servers will overwrite each other or one of the two servers gets stuck cause of trying to open a file thats currently in use... >_>  - neither is a very good thing for me =D

so is there any way to check whether the world I'm referring to is the master shard ? If yes , how? <3

Edited by Andmann
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...