Spoorn Armor Attributes [Fabric/Forge]

Spoorn Armor Attributes [Fabric/Forge]

534k Downloads

Crash When hit with Guardian Ranged Attack with Thorns on Armor.

Talan67 opened this issue ยท 5 comments

commented

Mod Version 1.0.5, Forge Version 1.18.2

When Hit with a Guardian Beam while wearing any Armor Piece that has the Thorns stat, it will Crash either the Server or Singleplayer world your in. This is only with guardians as far as I'm aware.

commented

Do you have a log?

commented

Think I may be seeing this issue as well. Server crashed shortly after one of my players come in range of a Guardian. After restarting the server, we were stable until he tried to join again, server crashed within 10 seconds of him joining. Checking the NBT on his character, I can see 2 items that have THORNS saa attribute.

Mod: 2.0.5
Forge: 43.1.27

I can upload full crash, debug & logs if needed.

image

Relevant section of debug log:
Zach_Crash_Log.txt

commented

Anecdotal evidence that this is what I was seeing.

I edited the player's dat file to relocate the equipped leggings that had THORNS attribute to his normal inventory (slot 101 > 24) & he was able to login & fight the Guardians without crashing the server.

commented
commented

This is because Guardians apply thorns as well in vanilla, so the player with thorns on an armor will damage the Guardian, which has thorns and will damage the player, and loop infinitely.

I'll change the SpoornArmorAttributes Thorn to be magic damage, which is how vanilla does it - but it means thorns will do less damage to Witches