Bewitchment

Bewitchment

7M Downloads

incompatible with sihywtcamd

Linguardium opened this issue ยท 0 comments

commented

Mod version

Bewitchment 1.19-6

A description of the issue

The bewitchment outrage curse causes a loop with this mod, where the curse calls setTarget, and setTarget calls their addBlindnessE method, which calls isPlayerStaring, which calls the outrage check again.

https://github.com/sf-inc/sihywtcamd/blob/638c0e7999b58bb0b9a086415045193d897da91a/src/main/java/com/github/galatynf/sihywtcamd/mixin/EndermanMixin.java#L23

if (!callbackInfo.getReturnValueZ() && !player.isCreative() && getTarget() == null && BWComponents.CURSES_COMPONENT.get(player).hasCurse(BWCurses.OUTRAGE) && distanceTo(player) <= getAttributeValue(EntityAttributes.GENERIC_FOLLOW_RANGE) / 4 && canSee(player)) {

Log or crash report

https://gist.github.com/Linguardium/3ac27b348db1160dd7b60300f57d4712