mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 23:59:11 +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.hypercube;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import crazypants.util.PlayerUtil;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.network.ByteBufUtils;
|
||||
@@ -44,7 +45,7 @@ public class PacketAddRemoveChannel implements IMessage, IMessageHandler<PacketA
|
||||
if(!isPublic) {
|
||||
user = ByteBufUtils.readUTF8String(data);
|
||||
}
|
||||
channel = new Channel(name, user == null ? null : user);
|
||||
channel = new Channel(name, PlayerUtil.getPlayerUIDUnstable(user));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user