修正删除pet时, pet无法找到的bug
This commit is contained in:
parent
1e75d19c3c
commit
fe8c91da9c
@ -171,7 +171,7 @@ Object.defineProperties(Room.prototype, {
|
|||||||
error(`bRemovePet no player found: ${pid}`);
|
error(`bRemovePet no player found: ${pid}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let pet = player.pets.get(obj.pos);
|
let pet = player.pets.get(obj.pos + '');
|
||||||
if (!pet) {
|
if (!pet) {
|
||||||
error(`bRemovePet no pet found: ${pid}, pos: ${obj.pos}`);
|
error(`bRemovePet no pet found: ${pid}, pos: ${obj.pos}`);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user