mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update server.js to remove duplicate variables in destat
Remove duplicate item definitions.
This commit is contained in:
@@ -5588,8 +5588,6 @@ function init_io() {
|
||||
|
||||
socket.on("destat", function (data) {
|
||||
var player = players[socket.id];
|
||||
var item = player.items[data.item_num];
|
||||
var def = G.items[item && item.name];
|
||||
if (!player || player.user) {
|
||||
return fail_response("cant_in_bank");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user