fixed spawn command for some non-standard languages. Fixes #1073
This commit is contained in:
1 parent
6f80c7959e
commit
49e4c41d2b
1 file changed
+2
-1
@@ -21,6 +21,7 @@ import net.minecraft.util.DyeColor;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Locale;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static com.mojang.brigadier.arguments.IntegerArgumentType.getInteger;
|
||||
@@ -110,7 +111,7 @@ public class SpawnCommand
|
||||
{
|
||||
throw new SimpleCommandExceptionType(Messenger.c("r Wrong mob type: "+string+" should be "+ Arrays.stream(SpawnGroup.values()).map(SpawnGroup::getName).collect(Collectors.joining(", ")))).create();
|
||||
}
|
||||
return SpawnGroup.valueOf(string.toUpperCase());
|
||||
return SpawnGroup.byName(string.toLowerCase(Locale.ROOT));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user