Browse Source

Fix rare case.

Risenio 6 years ago
parent
commit
040f8a04ae
2 changed files with 3 additions and 2 deletions
  1. 2 1
      lib/index.js
  2. 1 1
      manifest.json

+ 2 - 1
lib/index.js

@@ -3,7 +3,6 @@
 
 // ~~~ * Data * ~~~ \\
 
-const NotCP = typeof global.TeraProxy === "undefined" || typeof global.TeraProxy.UILanguage === "undefined";
 const NpcData = require("./data/npcData.json"), SkillData = require("./data/skillString.json");
 const Last_Hook = { order: 100010 }, Last_Hookfn = { order: 100010, filter: { fake: null, silenced: false, modified: null } };
 const BnzC = '#BC8F8F', SlvC = '#9A9A9A', GldC = '#DAA520', PnkC = '#FFB7C5', HPkC = '#FF69B4', CPKC = '#ED5D92', RedC = '#FE6F5E', GrnC = '#4DE19C', LPrC = '#E0B0FF', PrpC = '#9966CC', LBlC = '#4DDCE1', BluC = '#436EEE', DBlC = '#5BC0BE', HBlC = '#08B3E5', GryC = '#778899', YlwC = '#C0B94D';
@@ -17,6 +16,8 @@ const GameJobs = ["warrior", "lancer", "slayer", "berserker", "sorcerer", "arche
 
 module.exports = function FpsUtils(mod) {
 
+	const NotCP = typeof mod.compileProto !== 'undefined';
+
 	// ~~~ * Variables * ~~~ \\
 
 	let MyGameId,

+ 1 - 1
manifest.json

@@ -3,7 +3,7 @@
         "README.md": "7eae31e8066dad35209a4833ce708b0aeb8bca60deb8574ff84b99792ddfe862",
         "lib/data/npcData.json": "f59f23f654bd7d9ca2147fe40e82641088accaed9836cf742eb2ddaa6c575dd5",
         "lib/data/skillString.json": "9d69876fea0be8e6ac5dd43b3fc74ea023f6b8a6145384f8f780dd977045d8ef",
-        "lib/index.js": "f2300698fda101a42b203d470ab9980c14f26bd1c3f2b397c6f1cf6f5b052f35",
+        "lib/index.js": "2bee99adaccfb93c05cf3af0e324b88c33d21bdf06e16267355e7f04181ab49a",
         "lib/setting_migration.js": "27d46c0f126e6068b317e60b0712750d9c9f12cf6b39b4570b54c20d489cea4d",
         "module.json": "ffe3f50113c95d3dbfbfb8ed511adaf697c61ead7583d01544d90a5106277d6e",
         "package.json": "e76af3d11b40f0e86094904d6433e150b7fb5a46fcb88d7cd6048d82146fe756"