aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-26 18:32:04 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-26 18:32:04 +0800
commit9312c10329fe00f48a6d4316fb7d3cbf28f3d384 (patch)
treef547c53bc2d2f79591100df8e828ce2664ba3d06
parentcad412b04655498b061dc9e87b2ea59bdca308dc (diff)
downloadSoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.tar.gz
SoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.tar.bz2
SoopyV2-9312c10329fe00f48a6d4316fb7d3cbf28f3d384.zip
+ maby fix some freezes in m7 boss
-rw-r--r--features/dungeonSolvers/index.js5
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