From 67c561a83df3755ca2a66ed5614321f73856b8d3 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sat, 8 Feb 2014 21:48:04 -0600 Subject: [PATCH] darn it! --- core/sync/packets/PacketValueConfig.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/sync/packets/PacketValueConfig.java b/core/sync/packets/PacketValueConfig.java index 4c0660432..483cfe101 100644 --- a/core/sync/packets/PacketValueConfig.java +++ b/core/sync/packets/PacketValueConfig.java @@ -3,6 +3,7 @@ package appeng.core.sync.packets; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; +import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; @@ -18,8 +19,6 @@ import appeng.container.implementations.ContainerSecurity; import appeng.core.sync.AppEngPacket; import appeng.core.sync.network.INetworkInfo; -import com.sun.xml.internal.messaging.saaj.util.ByteInputStream; - public class PacketValueConfig extends AppEngPacket { @@ -28,7 +27,7 @@ public class PacketValueConfig extends AppEngPacket // automatic. public PacketValueConfig(ByteBuf stream) throws IOException { - DataInputStream dis = new DataInputStream( new ByteInputStream( stream.array(), 0, stream.readableBytes() ) ); + DataInputStream dis = new DataInputStream( new ByteArrayInputStream( stream.array(), 0, stream.readableBytes() ) ); Name = dis.readUTF(); Value = dis.readUTF(); dis.close();