Dmitry S лет назад: 2
Родитель
Сommit
19388ad0a1
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      index.js
  2. 1 1
      manifest.json

+ 1 - 1
index.js

@@ -45,7 +45,7 @@ module.exports = function AutoLootOld(mod) {
     function tryLoot() {
 		clearTimeout(lootTimeout);
 		lootTimeout = null;
-		if(!items.size || mod.game.me.mounted) return;
+		if(!items.size || !mod.game.me || mod.game.me.mounted) return;
 		for(let item of [...items.values()].sort((a, b) => a.priority - b.priority)){
 			if(location.dist3D(item.loc) <= radius){
 				mod.send('C_TRY_LOOT_DROPITEM', 4, { gameId: item.gameId });

+ 1 - 1
manifest.json

@@ -2,7 +2,7 @@
     "files": {
         "README.md": "070e56caa67c73ff1661b7b8746f4dd6122886e39518d283e5828f28e8316f92",
         "config.js": "86510f0db991599b66c83c84a222eda59bd1a250a259aa03a9b2e5e26190c9e8",
-        "index.js": "390c3b08e8fbbf40d9f05ff0ebedf63ecef431ca9a094e9235a0d4e68af6aa21",
+        "index.js": "fafc27b7440ef9c961666e23e787f897a49792c5e50de04d8fe990691ad1ef52",
         "module.json": "43196ecb24072d02ce661403991f52ce0d82796522709412f1e082ca9472e7e9"
     }
 }