Fukki 7 years ago
parent
commit
f015688f15
2 changed files with 3 additions and 3 deletions
  1. 2 2
      index.js
  2. 1 1
      manifest.json

+ 2 - 2
index.js

@@ -232,7 +232,7 @@ module.exports = function AutoPOT(mod) {
 	});
 	});
 	
 	
 	if (mod.majorPatchVersion => 85) {
 	if (mod.majorPatchVersion => 85) {
-		mod.hook('S_ITEMLIST', 'raw', e => {
+		mod.hook('S_ITEMLIST', 'raw', () => {
 			if (!invUpdate && e.gameId === mod.game.me.gameId) {
 			if (!invUpdate && e.gameId === mod.game.me.gameId) {
 				invUpdate = true;
 				invUpdate = true;
 				for(let hp = 0; hp < hpPot.length; hp++)
 				for(let hp = 0; hp < hpPot.length; hp++)
@@ -243,7 +243,7 @@ module.exports = function AutoPOT(mod) {
 			}
 			}
 		});
 		});
 	} else {
 	} else {
-		mod.hook('S_INVEN', 'raw', e => {
+		mod.hook('S_INVEN', 'raw', () => {
 			if (!invUpdate && e.gameId === mod.game.me.gameId) {
 			if (!invUpdate && e.gameId === mod.game.me.gameId) {
 				invUpdate = true;
 				invUpdate = true;
 				for(let hp = 0; hp < hpPot.length; hp++)
 				for(let hp = 0; hp < hpPot.length; hp++)

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 {
 	"files": {
 	"files": {
-		"index.js": "d1b615d83660750334eae6a9f34b73fc622f3cf6030f7cc054b3330c22e8038d"
+		"index.js": "5a962d67d520e76a232fcf63888deac2a12b7f04bdbb9659da7f8cf0fc71e348"
 	},
 	},
 	"defs": {
 	"defs": {
 		"C_ADMIN": 1,
 		"C_ADMIN": 1,