diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-03-23 12:33:45 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-03-23 12:33:45 +1100 |
commit | 3d712deb0ac1eb88bad71147baa7341e0e628026 (patch) | |
tree | dbda1a5735a8aa81544721710cbd093aeb44b406 /source | |
parent | c1fce691abd3038063dcc71ca312ed5608471829 (diff) |
bump OpenProtocolVersion and check so tile replacement works on older oSB servers
Diffstat (limited to 'source')
-rw-r--r-- | source/core/StarNetCompatibility.cpp | 2 | ||||
-rw-r--r-- | source/game/StarWorldClient.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/core/StarNetCompatibility.cpp b/source/core/StarNetCompatibility.cpp index 94e1ca5..cce74dc 100644 --- a/source/core/StarNetCompatibility.cpp +++ b/source/core/StarNetCompatibility.cpp @@ -2,6 +2,6 @@ namespace Star { -VersionNumber const OpenProtocolVersion = 3; +VersionNumber const OpenProtocolVersion = 4; }
\ No newline at end of file diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index d4b8151..80d84c7 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -380,7 +380,8 @@ TileModificationList WorldClient::replaceTiles(TileModificationList const& modif return {}; // Tell client it can't send a replace packet - if (m_clientState.netCompatibilityRules().isLegacy()) + auto netRules = m_clientState.netCompatibilityRules(); + if (netRules.isLegacy() || netRules.version() <= 3) return modificationList; TileModificationList success, failures; |