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

1.3.10 Support for patch versions < 75

TeraProxy лет назад: 8
Родитель
Сommit
10eb39d255
3 измененных файлов с 7 добавлено и 5 удалено
  1. 2 0
      README.md
  2. 2 2
      index.js
  3. 3 3
      manifest.json

+ 2 - 0
README.md

@@ -31,6 +31,8 @@ Contains code from true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 ## Changelog
 ## Changelog
 <details>
 <details>
 
 
+### 1.3.10
+* [*] Support for patch versions < 75
 ### 1.3.9
 ### 1.3.9
 * [~] Definition update
 * [~] Definition update
 ### 1.3.8
 ### 1.3.8

+ 2 - 2
index.js

@@ -1,4 +1,4 @@
-// Version 1.3.9
+// Version 1.3.10
 // Based on true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 // Based on true-everful-nostrum by Pinkie Pie https://github.com/pinkipi
 
 
 'use strict'
 'use strict'
@@ -71,7 +71,7 @@ module.exports = function Essentials(mod) {
 			}
 			}
 	})
 	})
 
 
-	mod.hook('S_ABNORMALITY_BEGIN', 3, abnormality.bind(null, 'S_ABNORMALITY_BEGIN'))
+	mod.hook('S_ABNORMALITY_BEGIN', mod.base.majorPatchVersion >= 75 ? 3:2, abnormality.bind(null, 'S_ABNORMALITY_BEGIN'))
 	mod.hook('S_ABNORMALITY_REFRESH', 1, abnormality.bind(null, 'S_ABNORMALITY_REFRESH'))
 	mod.hook('S_ABNORMALITY_REFRESH', 1, abnormality.bind(null, 'S_ABNORMALITY_REFRESH'))
 	mod.hook('S_ABNORMALITY_END', 1, abnormality.bind(null, 'S_ABNORMALITY_END'))
 	mod.hook('S_ABNORMALITY_END', 1, abnormality.bind(null, 'S_ABNORMALITY_END'))
 
 

+ 3 - 3
manifest.json

@@ -1,9 +1,9 @@
 {
 {
 	"files": {
 	"files": {
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
-		"README.md": "d9b0b60e3c6365693f250c727651c0718097e2180ce73491824f58e2f54d2818",
+		"README.md": "65d6456545ad06ac132ddbc25d802a86a18d7ad3bb1a5619d19e715365845d09",
 		"config.json": "f2f129d4bbb4b84f0a85ac5e23720f703e972ffb6a1219112b5dd87f7e9db5ac",
 		"config.json": "f2f129d4bbb4b84f0a85ac5e23720f703e972ffb6a1219112b5dd87f7e9db5ac",
-		"index.js": "726d60eb8d67269d8c79fd90481b27c04181c737081044f43caba064a9ed698e",
+		"index.js": "b98124e4f05e35662f0901657956ef8d968645dc487f35d51704b3971e65a0b7",
 		"module.json": "b44bf1fe879aa4c689f1989756c887ba5e20dafffe3b71f787656d5e3bcd2cbc",
 		"module.json": "b44bf1fe879aa4c689f1989756c887ba5e20dafffe3b71f787656d5e3bcd2cbc",
 		"settings_migrator.js": "4a96d898023ad7a73f4fe027ef810cae042d3fe867a24a2a3b7413f1aa923d03"
 		"settings_migrator.js": "4a96d898023ad7a73f4fe027ef810cae042d3fe867a24a2a3b7413f1aa923d03"
 	},
 	},
@@ -11,7 +11,7 @@
 		"C_PCBANGINVENTORY_USE_SLOT": 1,
 		"C_PCBANGINVENTORY_USE_SLOT": 1,
 		"C_PLAYER_LOCATION": "raw",
 		"C_PLAYER_LOCATION": "raw",
 		"C_USE_ITEM": 3,
 		"C_USE_ITEM": 3,
-		"S_ABNORMALITY_BEGIN": 3,
+		"S_ABNORMALITY_BEGIN": [2,3],
 		"S_ABNORMALITY_END": 1,
 		"S_ABNORMALITY_END": 1,
 		"S_ABNORMALITY_REFRESH": 1,
 		"S_ABNORMALITY_REFRESH": 1,
 		"S_PCBANGINVENTORY_DATALIST": 1
 		"S_PCBANGINVENTORY_DATALIST": 1