对战传输的玩家配置信息格式简化和修复一个问题(未使用所以从未触发)
This commit is contained in:
@@ -214,9 +214,9 @@ function Player:setRS(RSname)
|
||||
end
|
||||
|
||||
function Player:setConf(confStr)
|
||||
local _,conf=pcall(love.data.decode,"string","base64",confStr)
|
||||
if _ then
|
||||
for k,v in next,conf do
|
||||
confStr=JSON.decode(confStr)
|
||||
if confStr then
|
||||
for k,v in next,confStr do
|
||||
if not GAME.modeEnv[k]then
|
||||
self.gameEnv[k]=v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user