make run & add to server.properties and fix bitmask

This commit is contained in:
Alexandra-Myers 2026-03-07 18:21:01 -05:00
parent 40db2dfe3d
commit b800949255
3 changed files with 29 additions and 1 deletions

View file

@ -49,7 +49,7 @@
#define GAME_HOST_OPTION_BITMASK_ALL 0xFFFFFFFF
#define GAME_HOST_OPTION_BITMASK_WORLDSIZE_BITSHIFT 20
#define GAME_HOST_OPTION_BITMASK_WORLDMOBCAP_BITSHIFT 28 // Set to this value as there is no other remaining space
#define GAME_HOST_OPTION_BITMASK_WORLDMOBCAP_BITSHIFT 30 // Set to this value as there is no other remaining space
enum EGameHostOptionWorldSize
{

View file

@ -618,6 +618,7 @@ bool MinecraftServer::initServer(int64_t seed, NetworkGameInitData *initData, DW
app.SetGameHostOption(eGameHostOption_Difficulty, GetDedicatedServerInt(settings, L"difficulty", app.GetGameHostOption(eGameHostOption_Difficulty)));
app.SetGameHostOption(eGameHostOption_GameType, GetDedicatedServerInt(settings, L"gamemode", app.GetGameHostOption(eGameHostOption_GameType)));
app.SetGameHostOption(eGameHostOption_WorldMobCap, GetDedicatedServerInt(settings, L"world-mob-cap", app.GetGameHostOption(eGameHostOption_WorldMobCap)));
app.SetGameHostOption(eGameHostOption_Structures, GetDedicatedServerBool(settings, L"generate-structures", app.GetGameHostOption(eGameHostOption_Structures) > 0) ? 1 : 0);
app.SetGameHostOption(eGameHostOption_BonusChest, GetDedicatedServerBool(settings, L"bonus-chest", app.GetGameHostOption(eGameHostOption_BonusChest) > 0) ? 1 : 0);
app.SetGameHostOption(eGameHostOption_PvP, GetDedicatedServerBool(settings, L"pvp", app.GetGameHostOption(eGameHostOption_PvP) > 0) ? 1 : 0);

View file

@ -5,6 +5,33 @@
#include "Material.h"
#include "MobCategory.h"
int MobCategory::maxNaturalMonsters = 0;
int MobCategory::maxNaturalAnimals = 0;
int MobCategory::maxNaturalAmbient = 0;
int MobCategory::maxNaturalSquid = 0;
int MobCategory::maxNaturalChickens = 0;
int MobCategory::maxNaturalWolves = 0;
int MobCategory::maxNaturalMushroomCows = 0;
int MobCategory::maxSnowGolems = 0;
int MobCategory::maxIronGolems = 0;
int MobCategory::maxBosses = 0;
int MobCategory::maxAnimalsWithBreeding = 0;
int MobCategory::maxChickensWithBreeding = 0;
int MobCategory::maxMushroomCowsWithBreeding = 0;
int MobCategory::maxWolvesWithBreeding = 0;
int MobCategory::maxVillagersWithBreeding = 0;
int MobCategory::maxAnimalsWithSpawnEgg = 0;
int MobCategory::maxChickensWithSpawnEgg = 0;
int MobCategory::maxWolvesWithSpawnEgg = 0;
int MobCategory::maxMonstersWithSpawnEgg = 0;
int MobCategory::maxVillagersWithSpawnEgg = 0;
int MobCategory::maxMushroomCowsWithSpawnEgg = 0;
int MobCategory::maxSquidsWithSpawnEgg = 0;
int MobCategory::maxAmbientWithSpawnEgg = 0;
MobCategory *MobCategory::monster = NULL;
MobCategory *MobCategory::creature = NULL;
MobCategory *MobCategory::ambient = NULL;