Skip to content

Commit

Permalink
fix teleport action calling ServerPlayer#disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Sep 21, 2024
1 parent 4e5c2ab commit afc9b9a
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 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());
Expand Down

0 comments on commit afc9b9a

Please sign in to comment.