Commit 4a969fc5a7300cfef4c9740f9e4abb4674a96031

Authored by gaofengduan
1 parent d96fae59

fix diner levelUpRpc

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/actions/DinerAction.lua
@@ -96,7 +96,7 @@ function _M.levelUpRpc( agent, data ) @@ -96,7 +96,7 @@ function _M.levelUpRpc( agent, data )
96 return 96 return
97 end 97 end
98 if buildingData.upLimit ~= "" then 98 if buildingData.upLimit ~= "" then
99 - local id, level = buildingData.upLimit:math("(%d+)=(%d+)") 99 + local id, level = buildingData.upLimit:match("(%d+)=(%d+)")
100 if buildL:getv(tonumber(id), 1) < tonumber(level) then 100 if buildL:getv(tonumber(id), 1) < tonumber(level) then
101 return 101 return
102 end 102 end