Format code [skip actions]

This commit is contained in:
github-actions 2023-09-18 01:03:10 +00:00
parent 7f5059cb8f
commit ec2bfffdd1

View File

@ -385,7 +385,7 @@ public class World implements Iterable<Player> {
// Call player teleport event. // Call player teleport event.
PlayerTeleportEvent event = PlayerTeleportEvent event =
new PlayerTeleportEvent(player, teleportProperties, player.getPosition()); new PlayerTeleportEvent(player, teleportProperties, player.getPosition());
// Call event and check if it was canceled. // Call event and check if it was canceled.
event.call(); event.call();
if (event.isCanceled()) { if (event.isCanceled()) {
@ -443,7 +443,6 @@ public class World implements Iterable<Player> {
} }
} }
// Set player position and rotation // Set player position and rotation
if (teleportProperties.getTeleportTo() != null) { if (teleportProperties.getTeleportTo() != null) {
player.getPosition().set(teleportProperties.getTeleportTo()); player.getPosition().set(teleportProperties.getTeleportTo());
@ -461,7 +460,7 @@ public class World implements Iterable<Player> {
player.sendPacket(new PacketPlayerEnterSceneNotify(player, teleportProperties)); player.sendPacket(new PacketPlayerEnterSceneNotify(player, teleportProperties));
if (teleportProperties.getTeleportType() != TeleportType.INTERNAL if (teleportProperties.getTeleportType() != TeleportType.INTERNAL
&& teleportProperties.getTeleportType() != SCRIPT) { && teleportProperties.getTeleportType() != SCRIPT) {
player.getQuestManager().queueEvent(QuestContent.QUEST_CONTENT_ANY_MANUAL_TRANSPORT); player.getQuestManager().queueEvent(QuestContent.QUEST_CONTENT_ANY_MANUAL_TRANSPORT);
} }