mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +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) {
|
||||
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");
|
||||
|
||||
Float x = parseFloat(parts[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user