BedrockWorldData: remove unused custom fields

This commit is contained in:
Dylan K. Taylor 2022-12-19 15:06:06 +00:00
parent de3af9e660
commit 9809909072
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -83,8 +83,6 @@ class BedrockWorldData extends BaseNbtWorldData{
private const TAG_RAIN_TIME = "rainTime";
private const TAG_SPAWN_MOBS = "spawnMobs";
private const TAG_TEXTURE_PACKS_REQUIRED = "texturePacksRequired";
private const TAG_HARDCORE = "hardcore";
private const TAG_GAME_RULES = "GameRules";
private const TAG_LAST_OPENED_WITH_VERSION = "lastOpenedWithVersion";
private const TAG_COMMANDS_ENABLED = "commandsEnabled";
@ -131,8 +129,6 @@ class BedrockWorldData extends BaseNbtWorldData{
->setTag(self::TAG_LAST_OPENED_WITH_VERSION, new ListTag(array_map(fn(int $v) => new IntTag($v), self::CURRENT_CLIENT_VERSION_TARGET)))
//Additional PocketMine-MP fields
->setTag(self::TAG_GAME_RULES, new CompoundTag())
->setByte(self::TAG_HARDCORE, 0)
->setString(self::TAG_GENERATOR_NAME, GeneratorManager::getInstance()->getGeneratorName($options->getGeneratorClass()))
->setString(self::TAG_GENERATOR_OPTIONS, $options->getGeneratorOptions());