[ci skip] Create FUNDING.yml

This commit is contained in:
FlorianMichael 2024-03-05 13:30:23 +01:00
parent c20fee5dae
commit 4b8d89a4b6
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 4 additions and 1 deletions

2
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,2 @@
github: FlorianMichael
custom: ["https://florianmichael.de/donate"]

View File

@ -24,6 +24,7 @@ import com.google.common.collect.Multimap;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion; import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import de.florianmichael.viafabricplus.protocoltranslator.ProtocolTranslator; import de.florianmichael.viafabricplus.protocoltranslator.ProtocolTranslator;
import de.florianmichael.viafabricplus.settings.impl.DebugSettings; import de.florianmichael.viafabricplus.settings.impl.DebugSettings;
import net.minecraft.block.Block;
import net.minecraft.entity.attribute.EntityAttribute; import net.minecraft.entity.attribute.EntityAttribute;
import net.minecraft.entity.attribute.EntityAttributeModifier; import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.entity.attribute.EntityAttributes; import net.minecraft.entity.attribute.EntityAttributes;
@ -60,7 +61,7 @@ public abstract class MixinMiningToolItem extends ToolItem {
} }
@Inject(method = "<init>", at = @At("RETURN")) @Inject(method = "<init>", 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<Block> effectiveBlocks, Settings settings, CallbackInfo ci) {
final float materialAttackDamage = material.getAttackDamage(); final float materialAttackDamage = material.getAttackDamage();
if ((Item) this instanceof PickaxeItem) { if ((Item) this instanceof PickaxeItem) {
this.viaFabricPlus$attackDamage_r1_8 = 2 + materialAttackDamage; this.viaFabricPlus$attackDamage_r1_8 = 2 + materialAttackDamage;