Switched to storing UUID instead of username, with Offline Mode compatibility

This commit is contained in:
Katrina Swales committed 2015-02-06 00:42:47 +01:00
1 parent ba76cb4c0b
commit 60ded66263
17 files changed
+167 -86

No files matched your search

@@ -2,6 +2,7 @@ package crazypants.enderio.machine.transceiver.gui;
import java.awt.Color;
import crazypants.util.PlayerUtil;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiTextField;
@@ -250,7 +251,7 @@ public class ChannelTab implements ITabPanel {
}
Channel c;
if(privateButton.isSelected()) {
c = new Channel(newChannelTF.getText(), Minecraft.getMinecraft().thePlayer.getGameProfile().getName(), type);
c = new Channel(newChannelTF.getText(), PlayerUtil.getPlayerUUID(Minecraft.getMinecraft().thePlayer.getGameProfile().getName()), type);
} else {
c = new Channel(newChannelTF.getText(), null, type);
}