Skip to content

Commit 3c5d9df

Browse files
Fixes #419 - use existing custom brainsweep hooks (#928)
2 parents d861208 + 626d62c commit 3c5d9df

File tree

1 file changed

+3
-1
lines changed
  • Common/src/main/java/at/petrak/hexcasting/common/casting/actions/spells/great

1 file changed

+3
-1
lines changed

Common/src/main/java/at/petrak/hexcasting/common/casting/actions/spells/great/OpBrainsweep.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package at.petrak.hexcasting.common.casting.actions.spells.great
22

3+
import at.petrak.hexcasting.api.HexAPI
34
import at.petrak.hexcasting.api.casting.ParticleSpray
45
import at.petrak.hexcasting.api.casting.RenderedSpell
56
import at.petrak.hexcasting.api.casting.castables.SpellAction
@@ -74,7 +75,8 @@ object OpBrainsweep : SpellAction {
7475
override fun cast(env: CastingEnvironment) {
7576
env.world.setBlockAndUpdate(pos, BrainsweepRecipe.copyProperties(state, recipe.result))
7677

77-
IXplatAbstractions.INSTANCE.setBrainsweepAddlData(sacrifice)
78+
HexAPI.instance().brainsweep(sacrifice)
79+
7880
if (sacrifice is Villager && HexConfig.server().doVillagersTakeOffenseAtMindMurder()) {
7981
env.castingEntity?.let { sacrifice.tellWitnessesThatIWasMurdered(it) }
8082
}

0 commit comments

Comments
 (0)