[BUG] Possible interaction issue with Bewitchment
Pingu-Pox opened this issue · 2 comments
Minecraft, modloader and mod versions
The platform is a Fabric server running version "0.15.11".
The detected Minecraft version is "1.20.1".
The process is using Java 21.0.4 (Temurin-21.0.4+7 from Eclipse Adoptium)
Soulslike-Weaponry: soulslike-weaponry-1.1.4.2-1.20.1-fabric
Bewitchment: bewitchment-1.20-8
Describe the bug
A above-average portion of the tick loop is taken up by Marium's Soulslike Weaponry's Forlorn mobs being affected by Bewitchment's canHaveStatusEffect()
method seen here
To Reproduce
Steps to reproduce the behavior:
- Host a server for v3.0.2 of Prominence II RPG: Hasturian Era
- Connect to server with appropriate version of the modpack
- Go to the nether
- Watch performance tank on a server with a few people (TPS seems fine with 4 people based on the settings in my Spark profiler, but any more than that, TPS starts to tank to 10 or below)
Expected behavior
Unlike other mobs (Zombies, Skeletons, Creepers, etc.) the Forlorn seem to be affected strongly by Bewitchment's canHaveStatusEffect(). Being affected less or not at all would help with performance.
Other mods or relevant info
Here's a Spark profile of my server being affected by the issue. I have created a matching ticket for Bewitchment.