aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CI/supporttest.js10
-rw-r--r--features/slayers/index.js2
2 files changed, 11 insertions, 1 deletions
diff --git a/CI/supporttest.js b/CI/supporttest.js
index 963a1f7..04b8b1e 100644
--- a/CI/supporttest.js
+++ b/CI/supporttest.js
@@ -188,6 +188,16 @@
}
}
}
+
+ //Test for registering an entity attack event
+ if(file.replace(/ /g, "").includes("this.registerEvent(\"attackEntity\",")){
+ errors.push([
+ "Entity attack event doesent work on chattriggers 1.3",
+ dir,
+ "To fix change it into a forge trigger",
+ "this.registerForge(net.minecraftforge.event.entity.living.LivingAttackEvent, (event)=>{})"
+ ])
+ }
}
}
}
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 3d3b32e..d67d0b9 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -154,7 +154,7 @@ class Slayers extends Feature {
if(this.FeatureManager.features["dataLoader"].class.isInSkyblock){
if(!this.entityAttackEventLoaded){
this.entityAttackEventLoaded = true
- this.entityAttackEventE = this.registerForge(net.minecraftforge.event.entity.living.LivingAttackEvent, this.entityAttackEvent) //TODO: Use CT event when ct 2.0 because they made the ct event actually work
+ this.entityAttackEventE = this.registerForge(net.minecraftforge.event.entity.living.LivingAttackEvent, this.entityAttackEvent)
}
}else{
if(this.entityAttackEventLoaded){