Hopson97 / open-builder

Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server
https://github.com/Hopson97/open-builder/projects/3
GNU General Public License v3.0
700 stars 80 forks source link

Change client config to be a singleton #192

Closed Hopson97 closed 4 years ago

Hopson97 commented 4 years ago

I usually hate using singletons because blah blah global variables, but this one object was passed to basically every corner of the code, which wasn't very nice.

So yeah why not make it a singleton, as it basically is already.