mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +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 "<x>" -> player.getLocation().getX();
|
||||||
case "<y>" -> player.getLocation().getY();
|
case "<y>" -> player.getLocation().getY();
|
||||||
case "<z>" -> player.getLocation().getZ();
|
case "<z>" -> player.getLocation().getZ();
|
||||||
|
default -> 0;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
||||||
@@ -285,6 +286,7 @@ public class TpCommand extends CommandBase {
|
|||||||
value = switch (expectedArgument) {
|
value = switch (expectedArgument) {
|
||||||
case "<yaw>" -> player.getLocation().getYaw();
|
case "<yaw>" -> player.getLocation().getYaw();
|
||||||
case "<pitch>" -> player.getLocation().getPitch();
|
case "<pitch>" -> player.getLocation().getPitch();
|
||||||
|
default -> 0;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
return HandlerResponse.CANNOT_HANDLE_BY_CONSOLE;
|
||||||
|
|||||||
Reference in new issue
Block a user