diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 02:36:49 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 02:36:49 +0800 |
commit | 94e8b483dd90db6b5695da482692c0a4e968db69 (patch) | |
tree | 6459e6520496b11e2616dd564f2911549fd0f45d | |
parent | 60ef5dc3f0cddd896bb719ace502c777288a4ffb (diff) | |
download | SoopyV2-94e8b483dd90db6b5695da482692c0a4e968db69.tar.gz SoopyV2-94e8b483dd90db6b5695da482692c0a4e968db69.tar.bz2 SoopyV2-94e8b483dd90db6b5695da482692c0a4e968db69.zip |
add CI warning for entity attack event
-rw-r--r-- | CI/supporttest.js | 10 | ||||
-rw-r--r-- | features/slayers/index.js | 2 |
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){ |