From e1733ffa922b652e96591f60edffd4b7bc44ef8e Mon Sep 17 00:00:00 2001
From: Provi <17149901+Provismet@users.noreply.github.com>
Date: Mon, 26 Feb 2024 00:48:54 +0000
Subject: [PATCH 1/3] Add badges to README.
---
README.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/README.md b/README.md
index 45aa05e..9481d0c 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,9 @@
# Additional Armoury
+[![](https://img.shields.io/jitpack/version/com.github.Provismet/Additional-Armoury?style=flat-square&logo=jitpack&color=F6F6F6)](https://jitpack.io/#Provismet/Additional-Armoury)
+[![](https://img.shields.io/modrinth/dt/DxlUSaq8?style=flat-square&logo=modrinth&color=F6F6F6)](https://modrinth.com/mod/additional-armoury)
+[![](https://img.shields.io/curseforge/dt/973673?style=flat-square&logo=curseforge&color=F6F6F6)](https://www.curseforge.com/minecraft/mc-mods/additional-armoury)
From 299ac19123e33df19d2036cd48aa99b81532f4b6 Mon Sep 17 00:00:00 2001
From: Provismet <17149901+Provismet@users.noreply.github.com>
Date: Fri, 3 May 2024 22:25:11 +0100
Subject: [PATCH 2/3] Fix dagger potion use counting twice.
---
.../com/provismet/AdditionalArmoury/items/DaggerItem.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/provismet/AdditionalArmoury/items/DaggerItem.java b/src/main/java/com/provismet/AdditionalArmoury/items/DaggerItem.java
index a6cb493..6c4cd54 100644
--- a/src/main/java/com/provismet/AdditionalArmoury/items/DaggerItem.java
+++ b/src/main/java/com/provismet/AdditionalArmoury/items/DaggerItem.java
@@ -110,18 +110,18 @@ public void postChargedHit (ItemStack stack, LivingEntity user, LivingEntity tar
);
}
this.spawnInkParticles(newTarget, 3, stack);
+ ++damage;
}
- damage += 2;
}
boolean hasAdhesive = EnchantmentHelper.getLevel(AAEnchantments.ADHESIVE, stack) > 0;
if (hasAdhesive) {
- stack.damage(damage, user, p -> {
+ stack.damage(damage * 2, user, p -> {
if (p.getStackInHand(Hand.MAIN_HAND) == stack) p.sendToolBreakStatus(Hand.MAIN_HAND);
else p.sendToolBreakStatus(Hand.OFF_HAND);
});
}
- else if (user instanceof PlayerEntity player && !player.isCreative() && potion != Potions.EMPTY && this.decrementCurrentPotionUses(stack, damage * 2) <= 0) {
+ else if (user instanceof PlayerEntity player && !player.isCreative() && potion != Potions.EMPTY && this.decrementCurrentPotionUses(stack, damage) <= 0) {
PotionUtil.setPotion(stack, Potions.EMPTY);
stack.removeSubNbt(PotionUtil.CUSTOM_POTION_EFFECTS_KEY);
}
From e1ff67d9295be96ea6d6c0135d05563c0ee5bf76 Mon Sep 17 00:00:00 2001
From: Provi <17149901+Provismet@users.noreply.github.com>
Date: Fri, 3 May 2024 22:29:54 +0100
Subject: [PATCH 3/3] Bump version number.
---
gradle.properties | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index 106a368..9563513 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.15.3
# Mod Properties
-mod_version=1.0.1
+mod_version=1.0.2
maven_group=com.provismet
archives_base_name=additional-armoury
modid=additional-armoury
@@ -18,4 +18,4 @@ modid=additional-armoury
fabric_version=0.91.0+1.20.1
fabric_asm_version=v2.3
combatplus_version=1.0.0-mc1.20.1
-lilylib_version=1.1.3-mc1.20
\ No newline at end of file
+lilylib_version=1.1.3-mc1.20