Fix crash on 1.7.7

This commit is contained in:
fullwall 2014-04-10 23:18:26 +08:00
parent c2750faf9c
commit 81afd8bada

View File

@ -32,7 +32,7 @@ public class HumanController extends AbstractEntityController {
parseColors = parseColors.substring(0, 16);
}
final EntityHumanNPC handle = new EntityHumanNPC(ws.getServer().getServer(), ws, new GameProfile(UUID
.randomUUID().toString(), parseColors), new PlayerInteractManager(ws), npc);
.nameUUIDFromBytes(parseColors.getBytes()).toString(), parseColors), new PlayerInteractManager(ws), npc);
handle.setPositionRotation(at.getX(), at.getY(), at.getZ(), at.getYaw(), at.getPitch());
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override