mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 06:01:26 -05:00
Merge pull request #98 from thmsndk/patch-3
Fix eslin errors in socket.on("skin")
This commit is contained in:
+5
-3
@@ -10497,10 +10497,12 @@ function init_io() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
socket.on("skin",function(data){
|
socket.on("skin", function (data) {
|
||||||
var player = players[socket.id];
|
var player = players[socket.id];
|
||||||
if(player.role!="gm") return;
|
if (player.role != "gm") {
|
||||||
player.tskin=data.name;
|
return;
|
||||||
|
}
|
||||||
|
player.tskin = data.name;
|
||||||
resend(player, "u+cid");
|
resend(player, "u+cid");
|
||||||
});
|
});
|
||||||
socket.on("legacify", function (data) {
|
socket.on("legacify", function (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user