diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-18 08:54:52 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-09-18 08:54:52 +0800 |
commit | 91ce2e47013f18e85a08bc9d368130673b67f6ea (patch) | |
tree | 1b6e1a313c449228122dc397361acce43ed8ecb9 /src/featureClass | |
parent | 4498618aed3b2c4e7e55c0c2942fbfd7c0c0f903 (diff) | |
download | SoopyV2-91ce2e47013f18e85a08bc9d368130673b67f6ea.tar.gz SoopyV2-91ce2e47013f18e85a08bc9d368130673b67f6ea.tar.bz2 SoopyV2-91ce2e47013f18e85a08bc9d368130673b67f6ea.zip |
+ make babel add fetch import
+ reduce hot reload cooldown
Diffstat (limited to 'src/featureClass')
-rw-r--r-- | src/featureClass/featureManager.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/featureClass/featureManager.js b/src/featureClass/featureManager.js index 5a4b240..f80e6d6 100644 --- a/src/featureClass/featureManager.js +++ b/src/featureClass/featureManager.js @@ -5,7 +5,6 @@ import logger from "../logger"; const File = Java.type("java.io.File") import metadata from "../metadata.js" import soopyV2Server from "../socketConnection"; -import { fetch } from "../utils/networkUtils"; import NonPooledThread from "../utils/nonPooledThread"; import { setRendering } from "../utils/renderJavaUtils"; import { registerForge as registerForgeBase, unregisterForge as unregisterForgeBase } from "./forgeEvents.js" @@ -137,7 +136,7 @@ class FeatureManager { let moduleToReload = this.watches[key] if (this.features[moduleToReload] && !this.reloadingModules.has(moduleToReload)) { //if enabled && not alr in queue this.reloadingModules.add(moduleToReload) - this.reloadModuleTime = Date.now() + 5000 + this.reloadModuleTime = Date.now() + 100 } key.pollEvents()/*.forEach(event=>{ logger.logMessage(event.context().toString(), 1) |