mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Make sure we can force worlds.
This commit is contained in:
parent
f1b94fbbcc
commit
8a45e0c953
@ -424,7 +424,7 @@ public class Config
|
|||||||
*/
|
*/
|
||||||
public static Location parseLocation(World world, String coords) {
|
public static Location parseLocation(World world, String coords) {
|
||||||
String[] parts = coords.split(",");
|
String[] parts = coords.split(",");
|
||||||
if (parts.length != 5)
|
if (parts.length < 5)
|
||||||
throw new IllegalArgumentException("Input string must contain x, y, z, yaw and pitch");
|
throw new IllegalArgumentException("Input string must contain x, y, z, yaw and pitch");
|
||||||
|
|
||||||
Float x = parseFloat(parts[0]);
|
Float x = parseFloat(parts[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user