Browse Source

auto update

Tera Coder 7 years ago
parent
commit
590f7d1876
2 changed files with 1 additions and 3 deletions
  1. 0 2
      index.js
  2. 1 1
      manifest.json

+ 0 - 2
index.js

@@ -36,7 +36,6 @@ module.exports = function AutoLootOld(mod) {
 
     mod.hook('S_SPAWN_DROPITEM', 7, (e) => {
         if(!(config.blacklist.includes(e.item)) && (e.item < 8000 || e.item > 8025) && e.owners.some(owner => owner.playerId === mod.game.me.playerId)){
-            //items.set(e.gameId, e);
 			items.set(e.gameId, Object.assign(e, {priority: 0}));
 			if(enableAuto && !lootTimeout) tryLoot();
         }
@@ -49,7 +48,6 @@ module.exports = function AutoLootOld(mod) {
 		for(let item of [...items.values()].sort((a, b) => a.priority - b.priority)){
 			if(location.dist3D(item.loc) <= radius){
 				mod.toServer('C_TRY_LOOT_DROPITEM', 4, item);
-				//lootTimeout = setTimeout(tryLoot, interval);
 				lootTimeout = setTimeout(tryLoot, Math.min(interval * ++item.priority, throttleMax));
 				return;
 			}

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 	"files": {
-		"index.js": "5d268b228592955224a633de74225685f2e1a98a9c4824ed6517ce5abef65f07",
+		"index.js": "2e98aaa53b1a6d7335fdd571ac094053de218518ffe75fc0974b2b0ddf5a24af",
 		"module.json": "4ed019900213d703cb30ad1bb47f14244abe9dadfc618869ce2c8763d59f3188"
 	},
 	"defs": {