Skip to content

Commit

Permalink
Merge branch 'main' into fix-offline-training
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbesiren authored Mar 8, 2024
2 parents b2db078 + 47f25af commit 423161f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions data/scripts/talkactions/god/manage_storage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ function Player.getStorageValueTalkaction(self, param)
if storageKey == nil then
-- Get the key for this storage name
local storageName = tostring(split[2])
local storageValue = self:getStorageValueByName(storageName)
local storageValue = target:getStorageValueByName(storageName)
self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The storage with id: " .. storageName .. " from player " .. split[1] .. " is: " .. storageValue .. ".")
return true
else
local storageValue = target:getStorageValue(storageKey)
self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The storage with id: " .. storageKey .. " from player " .. split[1] .. " is: " .. storageValue .. ".")
end

local storageValue = self:getStorageValue(storageKey)
self:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The storage with id: " .. storageKey .. " from player " .. split[1] .. " is: " .. storageValue .. ".")
return true
end

Expand Down

0 comments on commit 423161f

Please sign in to comment.