#2367 Alter the way clientside transceiver channels are added

Unsure of the problems this may cause, need further testing
This commit is contained in:
tterrag1098 committed 2015-07-16 23:40:06 -04:00
1 parent a357b74e33
commit da5f2d8daf
3 files changed
+1 -11

No files matched your search

@@ -22,8 +22,6 @@ import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.client.event.sound.PlaySoundSourceEvent;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;
@@ -33,7 +31,6 @@ import powercrystals.minefactoryreloaded.api.rednet.IRedNetOmniNode;
import powercrystals.minefactoryreloaded.api.rednet.connectivity.RedNetConnectionType;
import com.enderio.core.client.render.BoundingBox;
import com.enderio.core.client.render.RenderUtil;
import com.enderio.core.common.util.BlockCoord;
import com.enderio.core.common.util.Util;
@@ -1,8 +1,5 @@
package crazypants.enderio.machine.transceiver;
import com.enderio.core.common.util.PlayerUtil;
import crazypants.enderio.EnderIO;
public class ClientChannelRegister extends ChannelRegister {
@@ -17,9 +14,6 @@ public class ClientChannelRegister extends ChannelRegister {
if(channel == null) {
return;
}
if(channel.getUser() != null && !channel.getUser().equals(PlayerUtil.getPlayerUUID(EnderIO.proxy.getClientPlayer().getGameProfile().getName()))) {
return;
}
super.addChannel(channel);
}
@@ -12,7 +12,6 @@ import com.enderio.core.client.gui.button.IconButton;
import com.enderio.core.client.gui.button.ToggleButton;
import com.enderio.core.client.gui.widget.GuiScrollableList;
import com.enderio.core.client.render.ColorUtil;
import com.enderio.core.common.util.PlayerUtil;
import crazypants.enderio.EnderIO;
import crazypants.enderio.gui.IconEIO;
@@ -253,7 +252,7 @@ public class ChannelTab implements ITabPanel {
}
Channel c;
if(privateButton.isSelected()) {
c = new Channel(newChannelTF.getText(), PlayerUtil.getPlayerUUID(Minecraft.getMinecraft().thePlayer.getGameProfile().getName()), type);
c = new Channel(newChannelTF.getText(), Minecraft.getMinecraft().thePlayer.getGameProfile().getId(), type);
} else {
c = new Channel(newChannelTF.getText(), null, type);
}