mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Switched to storing UUID instead of username, with Offline Mode compatibility
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user