From 4b8d89a4b6a5a5a0fa3536235a6e18209e1b3c88 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:30:23 +0100 Subject: [PATCH] [ci skip] Create FUNDING.yml --- .github/FUNDING.yml | 2 ++ .../mixin/fixes/minecraft/item/MixinMiningToolItem.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..e7bd0282 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: FlorianMichael +custom: ["https://florianmichael.de/donate"] \ No newline at end of file diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/item/MixinMiningToolItem.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/item/MixinMiningToolItem.java index 377a7fd7..0efa1936 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/item/MixinMiningToolItem.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/item/MixinMiningToolItem.java @@ -24,6 +24,7 @@ import com.google.common.collect.Multimap; import com.viaversion.viaversion.api.protocol.version.ProtocolVersion; import de.florianmichael.viafabricplus.protocoltranslator.ProtocolTranslator; import de.florianmichael.viafabricplus.settings.impl.DebugSettings; +import net.minecraft.block.Block; import net.minecraft.entity.attribute.EntityAttribute; import net.minecraft.entity.attribute.EntityAttributeModifier; import net.minecraft.entity.attribute.EntityAttributes; @@ -60,7 +61,7 @@ public abstract class MixinMiningToolItem extends ToolItem { } @Inject(method = "", at = @At("RETURN")) - private void init1_8Fields(float attackDamage, float attackSpeed, ToolMaterial material, TagKey effectiveBlocks, Settings settings, CallbackInfo ci) { + private void init1_8Fields(float attackDamage, float attackSpeed, ToolMaterial material, TagKey effectiveBlocks, Settings settings, CallbackInfo ci) { final float materialAttackDamage = material.getAttackDamage(); if ((Item) this instanceof PickaxeItem) { this.viaFabricPlus$attackDamage_r1_8 = 2 + materialAttackDamage;