Added Carrying Players by pressing V

This commit is contained in:
IM23a-spirgif
2025-04-25 18:43:11 +02:00
parent 4216aea33e
commit 0fad7fbdd3
6 changed files with 173 additions and 5 deletions
@@ -65,12 +65,8 @@ public class KnockedManager {
Map.Entry<UUID, Integer> entry = it.next();
UUID playerId = entry.getKey();
int timeLeft = entry.getValue();
// ① If a mob *or* a player is in the middle of executing them, pause:
if (MobKillHandler.isBeingMobExecuted(playerId)
|| PlayerExecutionHandler.isBeingPlayerExecuted(playerId)) {
// just re‑send the *current* timeLeft, do NOT decrement
ServerPlayer p = NetworkHandlerHelper.getPlayerByUuid(server, playerId);
if (p != null) {
NetworkHandler.CHANNEL.send(
@@ -80,7 +76,6 @@ public class KnockedManager {
}
continue;
}
// ② Otherwise count down as normal:
timeLeft--;
if (timeLeft <= 0) {