Skip to content

Commit

Permalink
Add the comment, remove the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bibi-reden committed Jun 28, 2024
1 parent b439000 commit 2f3cdbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import net.minecraft.util.Identifier;
import net.minecraft.registry.Registries;

/** Swaps out the default instances map for a custom one that has an {@link Identifier} as a key instead. */
@Mixin(DefaultAttributeContainer.class)
abstract class DefaultAttributeContainerMixin implements MutableDefaultAttributeContainer {
@Unique
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@

@Mixin(MiningToolItem.class)
abstract class MiningToolItemMixin extends ItemMixin {

// Overrides the getAttackDamage method from ItemMixin
@Override
public Float getAttackDamage(final ItemStack itemStack) {
// Calls the original getAttackDamage method from MiningToolItem
return ((MiningToolItem) (Object) this).getAttackDamage();
}
}

0 comments on commit 2f3cdbd

Please sign in to comment.