Use the NPC's UUID instead of a random one

This commit is contained in:
fullwall 2014-08-09 16:22:10 -07:00
parent 901f7ad654
commit 4e6d0547c0

View File

@ -57,7 +57,7 @@ public class HumanController extends AbstractEntityController {
coloredName = coloredName.substring(0, 16);
}
UUID uuid = UUID.randomUUID();
UUID uuid = npc.getUniqueId();
if (uuid.version() == 4) { // clear version
uuid = new UUID(uuid.getMostSignificantBits() | 0x0000000000005000L, uuid.getLeastSignificantBits());
}