Skip to content

Commit

Permalink
no configuration in adventure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Jun 21, 2023
1 parent a7e9426 commit 516c0a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public InteractionResult use(BlockState state, Level world, BlockPos pos, Player
public boolean canConfigure(Player player, InteractionHand hand) {
if (player.isCreative())
return true;
return player.getItemInHand(hand).is(PortalCubedItems.HAMMER);
return player.getAbilities().mayBuild && player.getItemInHand(hand).is(PortalCubedItems.HAMMER);
}

@Override
Expand Down

0 comments on commit 516c0a9

Please sign in to comment.