From afc9b9a1648f7124ff98ca46fbdf88e6787a17ac Mon Sep 17 00:00:00 2001 From: cheaterpaul Date: Sat, 21 Sep 2024 18:13:38 +0200 Subject: [PATCH] fix teleport action calling ServerPlayer#disconnect --- .../entity/player/vampire/actions/TeleportVampireAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/TeleportVampireAction.java b/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/TeleportVampireAction.java index 4e30e9aa02..f377351420 100755 --- a/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/TeleportVampireAction.java +++ b/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/TeleportVampireAction.java @@ -66,7 +66,7 @@ public boolean activate(@NotNull IVampirePlayer vampire, ActivationContext conte return false; } if (player instanceof ServerPlayer playerMp) { - playerMp.disconnect(); + playerMp.removeVehicle(); playerMp.teleportTo(pos.getX() + 0.5, pos.getY() + 0.1, pos.getZ() + 0.5); } AreaParticleCloudEntity particleCloud = new AreaParticleCloudEntity(ModEntities.PARTICLE_CLOUD.get(), player.getCommandSenderWorld());