MerchantPug / apugli

An extension to Apoli for certain mods' use.
MIT License
5 stars 4 forks source link

modify_enchantment_damage_taken crashes the game if given to another entity (?) #34

Closed DaedalusGame closed 1 year ago

DaedalusGame commented 1 year ago

Crashlog: https://gist.github.com/DaedalusGame/02093131962bbb4abe722ee969463fc8

I tested modify_enchantment_damage_taken with the same example as modify_enchantment_damage_dealt but swapped out the type, then i gave it to all entities with /power grant @e and smacked an entity with a sharpness sword, crashing the game.

MerchantPug commented 1 year ago

I simply forgot a null check here, will be fixed in 2.0.6.

MerchantPug commented 1 year ago

Fixed in v2.1.0.