mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
[ci skip] Tweak throws clause of toTimedTeleport
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user