[ci skip] Tweak throws clause of toTimedTeleport

This commit is contained in:
William committed 2023-05-05 23:51:43 +01:00
1 parent 28ab6d4a87
commit 24190930a2
1 file changed
+1 -1
@@ -49,7 +49,7 @@ public class TeleportBuilder {
}
@NotNull
public TimedTeleport toTimedTeleport() throws TeleportationException, IllegalStateException {
public TimedTeleport toTimedTeleport() throws IllegalStateException {
validateTeleport();
if (!(teleporter instanceof OnlineUser onlineTeleporter)) {
throw new IllegalStateException("Teleporter must be an OnlineUser for timed teleportation");