mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +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
|
@NotNull
|
||||||
public TimedTeleport toTimedTeleport() throws TeleportationException, IllegalStateException {
|
public TimedTeleport toTimedTeleport() throws IllegalStateException {
|
||||||
validateTeleport();
|
validateTeleport();
|
||||||
if (!(teleporter instanceof OnlineUser onlineTeleporter)) {
|
if (!(teleporter instanceof OnlineUser onlineTeleporter)) {
|
||||||
throw new IllegalStateException("Teleporter must be an OnlineUser for timed teleportation");
|
throw new IllegalStateException("Teleporter must be an OnlineUser for timed teleportation");
|
||||||
|
|||||||
Reference in new issue
Block a user