Skip to content

Commit

Permalink
Send without a proxy packet
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal committed Jan 12, 2016
1 parent 5c99d4b commit 0d5c115
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -34,8 +34,8 @@
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.server.S3FPacketCustomPayload;
import net.minecraft.util.ChatComponentText;
import net.minecraftforge.fml.common.network.internal.FMLProxyPacket;
import io.netty.buffer.Unpooled;

import javax.annotation.Nullable;
Expand Down Expand Up @@ -117,7 +117,8 @@ public void dispatchCUIEvent(CUIEvent event) {
send = send + "|" + StringUtil.joinString(params, "|");
}
PacketBuffer buffer = new PacketBuffer(Unpooled.copiedBuffer(send.getBytes(WECUIPacketHandler.UTF_8_CHARSET)));
WECUIPacketHandler.WECUI_CHANNEL.sendTo(new FMLProxyPacket(buffer, ForgeWorldEdit.CUI_PLUGIN_CHANNEL), player);
S3FPacketCustomPayload packet = new S3FPacketCustomPayload(ForgeWorldEdit.CUI_PLUGIN_CHANNEL, buffer);
this.player.playerNetServerHandler.sendPacket(packet);
}

@Override
Expand Down

0 comments on commit 0d5c115

Please sign in to comment.