pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP

Home Page:https://pmmp.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consolidate world data version info

dktapps opened this issue · comments

Description

New version updates require changes in several places:

  • BedrockWorldData: CURRENT_STORAGE_NETWORK_VERSION, CURRENT_CLIENT_VERSION_TARGET, CURRENT_STORAGE_VERSION
  • BlockStateData: CURRENT_VERSION

It's rather easy to forget to change these and cause problems on release. Unit tests can catch some of them, but not all.

We need:

  • a system that consolidates all of this info into a central location
  • a way to do updates that requires all of them be changed at the same time so that none are missed

Alternative methods