diff --git a/changelog.md b/changelog.md index dc3b12f..1c2cfa7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1 @@ -- updated Spanish translation (thanks to @critvanilla) -- fixed bug with Harvester not working properly when combined with Telekinesis -- fixed bug with Fuse Cutter particles being spawned too low -- fixed bug with being unable to fish anything on server (reported by @NeuTraLZer, @MiracleBelief) \ No newline at end of file +- fixed bug with Fishing Fanatic enchantment breaking the fishing rod (reported by @Colours) \ No newline at end of file diff --git a/common/src/main/java/com/majruszsenchantments/enchantments/FishingFanaticEnchantment.java b/common/src/main/java/com/majruszsenchantments/enchantments/FishingFanaticEnchantment.java index 9d3bac3..69acf89 100644 --- a/common/src/main/java/com/majruszsenchantments/enchantments/FishingFanaticEnchantment.java +++ b/common/src/main/java/com/majruszsenchantments/enchantments/FishingFanaticEnchantment.java @@ -122,8 +122,10 @@ private void increaseLoot( OnFishingExtraItemsGet data ) { int level = EnchantmentHelper.getLevel( this.enchantment, fishingRod ); List< ItemStack > loot = this.spawnExtraLoot( data, level ); - data.extraExperience += loot.size() + Random.nextInt( 2 * loot.size() ) + 1; - data.extraItems.addAll( loot ); + if( !loot.isEmpty() ) { + data.extraExperience += loot.size() + Random.nextInt( 2 * loot.size() ) + 1; + data.extraItems.addAll( loot ); + } } private List< ItemStack > spawnExtraLoot( OnFishingExtraItemsGet data, int level ) { diff --git a/gradle.properties b/gradle.properties index 050769f..125c3ab 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ minecraft_version_range=[1.20.1,) # Mod mod_id=majruszsenchantments mod_archives_name=majruszs-enchantments -mod_version=1.10.1 +mod_version=1.10.2 mod_display_name=Majrusz's Enchantments mod_description=Mod that adds plenty of unique and balanced enchantments to the game. mod_authors=Majrusz