Skip to content

Commit

Permalink
NeoForge: Fix ToolActions not found (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda authored Jun 29, 2024
1 parent 507a51d commit 2eb987a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ log4j2-version = "2.23.1"
# Minecraft / Loaders
minecraftVersion = "1.21"
fabric-loader-version = "0.15.11"
fabric-api-version = "0.100.1+1.21"
forge-version = "1.21-51.0.8"
neoforge-version = "21.0.8-beta"
fabric-api-version = "0.100.4+1.21"
forge-version = "1.21-51.0.18"
neoforge-version = "21.0.42-beta"

# Mod dependencies
modmenu-version = "11.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.EnchantmentHelper;
import net.neoforged.neoforge.common.ToolActions;
import net.neoforged.neoforge.common.ItemAbilities;
import org.jetbrains.annotations.NotNull;
import java.util.Optional;

Expand Down Expand Up @@ -78,6 +78,6 @@ public Optional<BreakMode> getBreakModeFromEnchant(){

@Override
public boolean canPerformAxeAction(){
return raw.canPerformAction(ToolActions.AXE_DIG);
return raw.canPerformAction(ItemAbilities.AXE_DIG);
}
}

0 comments on commit 2eb987a

Please sign in to comment.