Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-03-23 12:33:45 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-03-23 12:33:45 +1100
commit3d712deb0ac1eb88bad71147baa7341e0e628026 (patch)
treedbda1a5735a8aa81544721710cbd093aeb44b406 /source/game/StarWorldClient.cpp
parentc1fce691abd3038063dcc71ca312ed5608471829 (diff)
bump OpenProtocolVersion and check so tile replacement works on older oSB servers
Diffstat (limited to 'source/game/StarWorldClient.cpp')
-rw-r--r--source/game/StarWorldClient.cpp3
1 files changed, 2 insertions, 1 deletions
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;