Allow players to retain their skins if they disguised as theirselves

This commit is contained in:
libraryaddict
2014-04-12 17:07:27 +12:00
parent 5a4ac21f10
commit 3d60fe3c49
4 changed files with 39 additions and 12 deletions

View File

@@ -300,7 +300,7 @@ public class DisguiseUtilities {
}
public static UUID getUUID() {
if (LibVersion.getGameVersion() == LibVersion.V1_7) {
if (LibVersion.is1_7()) {
EthernetAddress addr = EthernetAddress.fromInterface();
TimeBasedGenerator uuidGenerator = Generators.timeBasedGenerator(addr);
return uuidGenerator.generate();