MC Dungeons Weapons

MC Dungeons Weapons

8M Downloads

enigma shot enchantment causes crash

TheRanker opened this issue ยท 5 comments

commented

Describe the bug
seems mcdw has a bad enchantment . enigma shot damage. a raider has one and fired an arrow.

To Reproduce
Steps to reproduce the behavior:
get shot by a mob holding bow and arrow with the enigma shot enchantment

Expected behavior
not crash

Screenshots
NA

Please complete the following information:

Additional context
crash-2022-04-21_16.42.45-client.txt

commented

I can take a look at this right now. Thanks for the report!

commented

@TheRanker, I cannot reproduce this issue in the latest version, 4.3.0. Please be advised that we have changed the way that enchantments are applied and updating will likely delete any weapons you have. If you find that you are able to reproduce this issue in the latest version, we'll take another look at it, but if not, this issue will be closed in 48 hours

commented

ty. will keep it in mind and let the dev know and test once updated.

commented

Sounds like a plan! :D

commented

I checked our code and this issue was fixed between 4.2.5 and 4.3.0. There was initially just a cast whereas now there is a check to ensure there is a PlayerEntity doing the damage before accessing the experience.