We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c27129f commit f68fe4cCopy full SHA for f68fe4c
src/main/java/com/datdeveloper/datmoddingapi/delayedEvents/DelayedTeleportEvent.java
@@ -59,7 +59,7 @@ public void execute() {
59
60
@Override
61
public boolean shouldRequeue(boolean hasFinished) {
62
- if (startingPos.distToCenterSqr(player.position()) > 1) {
+ if (!hasFinished && startingPos.distToCenterSqr(player.position()) > 1) {
63
player.sendSystemMessage(Component.literal(DatChatFormatting.TextColour.ERROR + "Teleport cancelled"));
64
return false;
65
}
0 commit comments