Browse Source

Remove support for patch versions < 75

TeraProxy 8 years ago
parent
commit
dbf7902a2a
4 changed files with 9 additions and 7 deletions
  1. 2 0
      README.md
  2. 2 2
      index.js
  3. 4 4
      manifest.json
  4. 1 1
      settings_migrator.js

+ 2 - 0
README.md

@@ -39,6 +39,8 @@ Based on true-everful-nostrum by Caali https://github.com/caali-hackerman
 ## Changelog
 <details>
 
+### 2.0.4
+* [-] Removed support for patch versions < 75
 ### 2.0.3
 * [~] Cross compatibility for Caali's and Pinkie's proxy (no more branch)
 ### 2.0.2

+ 2 - 2
index.js

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

+ 4 - 4
manifest.json

@@ -1,15 +1,15 @@
 {
 	"files": {
 		"LICENSE": "589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2",
-		"README.md": "8285e865979ac7fc700a6fd165a2a73e9664a67dadaa4fead0020dfdd179b971",
-		"index.js": "a0b5875343210860afc620624df37a9504997b87e8a1dd41abf5210941104afa",
+		"README.md": "5c25c3729ef010cd2572827bcea21432fa16712ffd0bf64db7aa167d2c40b689",
+		"index.js": "a914a20cd7fb73d453a315ad1c36805268bc044c42ee18198fb326596513170a",
 		"module.json": "ff65da8b58525c2468a904b0c5cda7490b98d395dd352dcc12bf58ca67faf3cb",
-		"settings_migrator.js": "1e910f071a6542ea586144b5b8b57e2be8cc5cd196244b0ef294eca578c8eca5"
+		"settings_migrator.js": "d06d1adc3c700cb22392e8921a6e3b99302ae536f46bc3da200311eee1e8141d"
 	},
 	"defs": {
 		"C_PCBANGINVENTORY_USE_SLOT": 1,
 		"C_USE_ITEM": 3,
-		"S_ABNORMALITY_BEGIN": [2,3],
+		"S_ABNORMALITY_BEGIN": 3,
 		"S_ABNORMALITY_END": 1,
 		"S_ABNORMALITY_REFRESH": 1,
 		"S_PCBANGINVENTORY_DATALIST": 1

+ 1 - 1
settings_migrator.js

@@ -40,7 +40,7 @@ module.exports = function MigrateSettings(from_ver, to_ver, settings) {
 					}
 				}
 
-				console.log('[Essentials] Your settings have been updated to version ' + to_ver + '. You can edit the new config file after the next relog.')
+				if(from_ver < to_ver) console.log('[Essentials] Your settings have been updated to version ' + to_ver + '. You can edit the new config file after the next relog.')
 				break;
         }