Просмотр исходного кода

Fix.

I forgot to push this fix...
Mie лет назад: 7
Родитель
Сommit
78378aed26
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 4
      lib/index.js
  2. 1 1
      manifest.json

+ 4 - 4
lib/index.js

@@ -447,14 +447,14 @@ module.exports = function FpsUtils(mod) {
 			case 'pet':
 				switch (whose) {
 					case 'own':
-						for (let p of SPets) {
+						for (let p in SPets) {
 							if (!EqGid(SPets[p].ownerId)) continue
 							mod.toClient('S_REQUEST_DESPAWN_SERVANT', 1, { gameId: SPets[p].gameId, despawnType: 1 })
 							HPets[SPets[p].gameId] = SPets[p]
 						}
 						break;
 					case 'others':
-						for (let p of SPets) {
+						for (let p in SPets) {
 							if (EqGid(SPets[p].ownerId)) continue
 							mod.toClient('S_REQUEST_DESPAWN_SERVANT', 1, { gameId: SPets[p].gameId, despawnType: 1 })
 							HPets[SPets[p].gameId] = SPets[p]
@@ -498,14 +498,14 @@ module.exports = function FpsUtils(mod) {
 			case 'pet':
 				switch (whose) {
 					case 'own':
-						for (let p of HPets) {
+						for (let p in HPets) {
 							if (!EqGid(HPets[p].ownerId)) continue
 							mod.toClient('S_REQUEST_SPAWN_SERVANT', 1, HPets[p])
 							delete HPets[p]
 						}
 						break;
 					case 'others':
-						for (let p of HPets) {
+						for (let p in HPets) {
 							if (EqGid(HPets[p].ownerId)) continue
 							mod.toClient('S_REQUEST_SPAWN_SERVANT', 1, HPets[p])
 							delete HPets[p]

+ 1 - 1
manifest.json

@@ -3,7 +3,7 @@
         "README.md": "bc59f32c10752de9a4123dec9688be45e9e97bd5ef6cd20ecdf249635fafc333",
         "lib/data/npcData.json": "a49e0212694a473d384784475ff960fa762210c42158dce0579e6f41f1deb996",
         "lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-        "lib/index.js": "fd30971a0c05c3fba14b9ef10ea031673a617a9090a228673170f204c2d20926",
+        "lib/index.js": "a4a92f8451ad51883031647f4cf0b7c77f407075fd0194bad3b1e54cde4029a5",
         "lib/setting_migration.js": "4410872e3bba42dfeb1c9d08145037c6316488f87be58b2dae4cc7d79d4b3f59",
         "module.json": "187d8e09b1f4a01e472fb878e550ce1ffc1e6385cc9ea22b46fca8231aefb51b",
         "package.json": "cf91ada5d7459e143e90045442fa04e8985292c1a84944112b6f413559490460"