Skip to content

Commit

Permalink
fix: Update to Breaking Changes in NeoForge 21.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jun 27, 2024
1 parent 5bbece4 commit 566554d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ forge_loader_version_range = [51,)

# NeoForge
neoforge_snapshot_url=
neoforge_version = 21.0.31-beta
neoforge_version_range = [21.0.31-beta,)
neoforge_version = 21.0.40-beta
neoforge_version_range = [21.0.40-beta,)
neoforge_loader_version_range = [1,)

# Fabric
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import net.minecraft.world.level.levelgen.feature.ConfiguredFeature;
import net.minecraft.world.phys.BlockHitResult;
import net.neoforged.neoforge.common.EffectCures;
import net.neoforged.neoforge.common.ToolActions;
import net.neoforged.neoforge.common.ItemAbilities;
import net.neoforged.neoforge.common.util.FakePlayer;
import net.neoforged.neoforge.event.EventHooks;
import net.neoforged.neoforge.fluids.FluidUtil;
Expand Down Expand Up @@ -112,7 +112,7 @@ public boolean useFluidTank(BlockState state, Level level, BlockPos pos, Player

@Override
public boolean isShield(ItemStack itemStack) {
return itemStack.getItem().canPerformAction(itemStack, ToolActions.SHIELD_BLOCK);
return itemStack.getItem().canPerformAction(itemStack, ItemAbilities.SHIELD_BLOCK);
}

@Override
Expand Down

0 comments on commit 566554d

Please sign in to comment.