Skip to content

Commit

Permalink
fix: #34 - use case when wearing armour
Browse files Browse the repository at this point in the history
  • Loading branch information
Duzos committed Oct 9, 2024
1 parent bf93e90 commit a256f2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public static boolean fromCase(ServerPlayerEntity player, boolean force) {
if (!force) {
if (!player.isOnGround()) return false; // not on ground
if (!player.getMainHandStack().isOf(Register.Items.MARK_FIVE_CASE)) return false; // not holding
if (SuitSet.hasArmor(player)) return false; // already wearing
}

player.getWorld().playSound(null, player.getBlockPos(), Register.Sounds.MARK5_NOISES, SoundCategory.PLAYERS, 0.25f, 1f);
Expand Down

0 comments on commit a256f2f

Please sign in to comment.