OldCombatMechanics

OldCombatMechanics

46.1k Downloads

Old Golden Apples module overrides superior effects

Drc-DEV opened this issue ยท 3 comments

commented

Info

  • Server version: 1.12.2 PaperSpigot
  • OldCombatMechanics version: 1.6.6

Problem Description

If a player has a superior effect, for example Resistance II, when he eats an enchanted golden apple (configured with Resistance I) he gets downgraded to Resistance I. This should not happen, you should check for pre-existing effects and not apply inferior ones if they are present!

Snippet for a better method of handling this: https://pastebin.com/uaTDVnkL

commented

Hold on, I don't remember right now but can you check whether this issue is still present in the newest test versions?

commented

I checked in the source code on this github. So if the dev versions are just this source compiled, the bug is present.