update to 1.21.5

This commit is contained in:
2025-07-04 04:41:00 +02:00
parent 58f5351193
commit bf746ac90c
4 changed files with 9 additions and 9 deletions

View File

@@ -30,7 +30,7 @@ public class TridentItemMixin {
{
if (TridentHacks.noNormalRiptide())
{
world.playSoundFromEntity(player, SoundEvents.ITEM_TRIDENT_RIPTIDE_3.value(), SoundCategory.PLAYERS, 1.F, 1.F);
world.playSoundFromEntity(player, player, SoundEvents.ITEM_TRIDENT_RIPTIDE_3.value(), SoundCategory.PLAYERS, 1.F, 1.F);
TridentHacks.lastTridentUse = System.currentTimeMillis();
}
TridentHacks.onGround = false;
@@ -41,7 +41,7 @@ public class TridentItemMixin {
PlayerEntity player = TridentHacks.client.player;
if (player != null)
{
TridentHacks.tridentSlot = (user.getOffHandStack() == stack) ? PlayerInventory.OFF_HAND_SLOT : player.getInventory().selectedSlot;
TridentHacks.tridentSlot = (user.getOffHandStack() == stack) ? PlayerInventory.OFF_HAND_SLOT : player.getInventory().getSelectedSlot();
}
}
}