Added a dummy cheats toggle to the world creation screen.

This commit is contained in:
2026-03-13 11:04:58 +01:00
parent 248e9cb69a
commit b1cd6c6581
5 changed files with 65 additions and 17 deletions

View File

@@ -72,6 +72,9 @@ public:
bool getSpawnMobs() const;
void setSpawnMobs(bool doSpawn);
bool getAllowCheats() const;
void setAllowCheats(bool allow);
public:
PlayerData playerData;
int playerDataVersion;
@@ -89,6 +92,7 @@ private:
int gameType;
int storageVersion;
bool spawnMobs;
bool allowCheats;
//@note: This version is never written or loaded to disk. The only purpose
// is to use it in the level generator on server and clients.
int generatorVersion;