Open DanSeb2000 opened 1 week ago
Hmm not sure if it's directly related to the weakness effect but there definitely seems something strange going on in those logs that needs to be investigated. This is possibly related to #707.
P.S. Regarding the java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
that has been fixed a while ago in the test builds.
It could be that it's trying to take the damage from the sword and, because of how the minecraft weakness potion works, it's retrieving the current player damage? That being 0 or below. I tried different swords and this is my result (Video below)
https://www.youtube.com/watch?v=My5da2RkfOI
Wooden/golden sword and hand - Damage canceled, not even trying to do damage. Stone to Netherite swords - -8 damage each. As always, everything with the default config and not other plugins changing the damage.
It could be that it's trying to take the damage from the sword and, because of how the minecraft weakness potion works, it's retrieving the current player damage? That being 0 or below. I tried different swords and this is my result (Video below)
https://www.youtube.com/watch?v=My5da2RkfOI
Wooden/golden sword and hand - Damage canceled, not even trying to do damage. Stone to Netherite swords - -8 damage each. As always, everything with the default config and not other plugins changing the damage.
OCM deliberately sets weakness at level 0 so that originally weaker weapons that have been set to a higher damage in the config can still get through - and then calculates what the damage with weakness should be. Maybe this mechanism is not working quite as intended under certain circumstances.
Information
Server Log
config.yml
Problem Description
Weakness working weird, it makes that the player does little to no damage with a netherite sword with no enchantments or Sharpness V, even if the player is using Strength II
To Reproduce
Steps to reproduce the behavior: 1. Apply Weakness to yourself 2. Try to do some damage 3. Result no doing damage or doing very low damage with enchantments and/or strength ### Expected BehaviourOnly reducing some damage pre armor reduction calculation.
Actual Behaviour
Reduces damage pre calculation, I think it's the base damage fault here.
If you need any screenshot or video tell me, but I think it's very easy to reproduce, I'm using the default config. I tried to change the base weakness values, but I got weirder results.