Minor derp.
This commit is contained in:
parent
14b7fe8a42
commit
62aa5c4175
2 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
package appeng.container;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
@ -54,8 +55,6 @@ import appeng.util.Platform;
|
|||
import appeng.util.inv.AdaptorPlayerHand;
|
||||
import appeng.util.item.AEItemStack;
|
||||
|
||||
import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream;
|
||||
|
||||
public abstract class AEBaseContainer extends Container
|
||||
{
|
||||
|
||||
|
@ -118,7 +117,7 @@ public abstract class AEBaseContainer extends Container
|
|||
if ( Platform.isSameItemPrecise( a, b ) )
|
||||
return;
|
||||
|
||||
ByteOutputStream stream = new ByteOutputStream();
|
||||
ByteArrayOutputStream stream = new ByteArrayOutputStream();
|
||||
NBTTagCompound item = new NBTTagCompound();
|
||||
|
||||
if ( stack != null )
|
||||
|
@ -131,7 +130,7 @@ public abstract class AEBaseContainer extends Container
|
|||
int maxChunkSize = 30000;
|
||||
List<byte[]> miniPackets = new LinkedList();
|
||||
|
||||
byte[] data = stream.getBytes();
|
||||
byte[] data = stream.toByteArray();
|
||||
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream( data, 0, stream.size() );
|
||||
while (bis.available() > 0)
|
||||
|
|
|
@ -8,8 +8,8 @@ import java.util.Date;
|
|||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import appeng.core.AELog;
|
||||
import appeng.core.AEConfig;
|
||||
import appeng.core.AELog;
|
||||
|
||||
public class VersionChecker implements Runnable
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue