mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix botched switch statement
This commit is contained in:
1 parent
cfb3d7c0e8
commit
1bfc594db6
1 file changed
+2
@@ -256,6 +256,7 @@ public class TpCommand extends CommandBase {
|
||||
case "<x>" -> player.getLocation().getX();
|
||||
case "<y>" -> player.getLocation().getY();
|
||||
case "<z>" -> player.getLocation().getZ();
|
||||
default -> 0;
|
||||
};
|
||||
} else {
|
||||
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
||||
@@ -285,6 +286,7 @@ public class TpCommand extends CommandBase {
|
||||
value = switch (expectedArgument) {
|
||||
case "<yaw>" -> player.getLocation().getYaw();
|
||||
case "<pitch>" -> player.getLocation().getPitch();
|
||||
default -> 0;
|
||||
};
|
||||
} else {
|
||||
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
||||
|
||||
Reference in new issue
Block a user