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

summaryrefslogtreecommitdiff
path: root/source/game/items/StarUnlockItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/items/StarUnlockItem.cpp')
-rw-r--r--source/game/items/StarUnlockItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/items/StarUnlockItem.cpp b/source/game/items/StarUnlockItem.cpp
index 471c39c..ee067fb 100644
--- a/source/game/items/StarUnlockItem.cpp
+++ b/source/game/items/StarUnlockItem.cpp
@@ -40,7 +40,7 @@ void UnlockItem::fireTriggered() {
if (auto clientContext = player->clientContext()) {
if (m_shipUpgrade)
- clientContext->rpcInterface()->invokeRemote("ship.applyShipUpgrades", JsonObject{{"shipLevel", *m_shipUpgrade}});
+ player->applyShipUpgrades(JsonObject{ {"shipLevel", *m_shipUpgrade} });
}
if (!m_unlockMessage.empty()) {