diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-26 18:32:04 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-26 18:32:04 +0800 |
commit | 9312c10329fe00f48a6d4316fb7d3cbf28f3d384 (patch) | |
tree | f547c53bc2d2f79591100df8e828ce2664ba3d06 | |
parent | cad412b04655498b061dc9e87b2ea59bdca308dc (diff) | |
download | SoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.tar.gz SoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.tar.bz2 SoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.zip |
+ maby fix some freezes in m7 boss
-rw-r--r-- | features/dungeonSolvers/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index e602de7..7dcc0aa 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -181,6 +181,7 @@ class DungeonSolvers extends Feature { this.bloodOpenedBonus = false; this.goneInBonus = false; this.mimicDead = false + this.inBoss = false this.registerChat("&r&cThe &r&c&lBLOOD DOOR&r&c has been opened!&r", () => { this.bloodOpenedBonus = true; this.goneInBonus = true; @@ -196,6 +197,7 @@ class DungeonSolvers extends Feature { this.registerChat(msg, () => { this.goneInBonus = false; this.bloodOpenedBonus = false; + this.inBoss = true }); }) this.registerEvent("entityDeath", (entity) => { @@ -248,7 +250,7 @@ class DungeonSolvers extends Feature { } }); - this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDungeon()); + this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDungeon() && !this.inBoss); // this.registerEvent("renderEntity", this.renderEntity) this.renderEntityEvent = undefined; @@ -554,6 +556,7 @@ class DungeonSolvers extends Feature { } onWorldLoad() { + this.inBoss = false this.goneInBonus = false; this.bloodOpenedBonus = false; this.mimicDead = false |