Make sure we can force worlds.

This commit is contained in:
garbagemule 2013-08-15 00:45:26 +02:00
parent f1b94fbbcc
commit 8a45e0c953

View File

@ -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]);