Posted June 19, 20178 yr I noticed that both the client and server files (like options.txt, server.properties, resourcepacks etc) are in the "run" directory. This makes me wonder how it loads and handles config files when you have both a client and server open at the same time (via "gradlew runClient" and "gradlew runServer" for example). I made a boolean config value and a command that prints that value, and it turns out that if I change the value via the GUI in the client but don't change it in actual file the command will post different results. Could someone explain how it manages to keep track of both at the same time?
June 19, 20178 yr Author 7 minutes ago, diesieben07 said: The file is loaded into memory and then kept there. The game doesn't ask the harddrive "hey, what was that file again" every time you access the Configuration object. Is this also how it works outside a dev environment?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.