Skulls should use underscores for player names, not spaces

This commit is contained in:
Wizjany 2013-01-15 22:59:53 -05:00
parent 2b29d1a253
commit 83c71f30a8

View File

@ -570,7 +570,7 @@ public class WorldEdit {
else skullType = 3; else skullType = 3;
} }
if (skullType == 3) { if (skullType == 3) {
return new SkullBlock(data, rot, type); return new SkullBlock(data, rot, type.replace(" ", "_")); // valid MC usernames
} else { } else {
return new SkullBlock(data, skullType, rot); return new SkullBlock(data, skullType, rot);
} }