Minor derp.

This commit is contained in:
AlgorithmX2 2014-05-12 23:28:29 -05:00
parent 14b7fe8a42
commit 62aa5c4175
2 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,7 @@
package appeng.container; package appeng.container;
import java.io.ByteArrayInputStream; import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashSet; import java.util.HashSet;
@ -54,8 +55,6 @@ import appeng.util.Platform;
import appeng.util.inv.AdaptorPlayerHand; import appeng.util.inv.AdaptorPlayerHand;
import appeng.util.item.AEItemStack; import appeng.util.item.AEItemStack;
import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream;
public abstract class AEBaseContainer extends Container public abstract class AEBaseContainer extends Container
{ {
@ -118,7 +117,7 @@ public abstract class AEBaseContainer extends Container
if ( Platform.isSameItemPrecise( a, b ) ) if ( Platform.isSameItemPrecise( a, b ) )
return; return;
ByteOutputStream stream = new ByteOutputStream(); ByteArrayOutputStream stream = new ByteArrayOutputStream();
NBTTagCompound item = new NBTTagCompound(); NBTTagCompound item = new NBTTagCompound();
if ( stack != null ) if ( stack != null )
@ -131,7 +130,7 @@ public abstract class AEBaseContainer extends Container
int maxChunkSize = 30000; int maxChunkSize = 30000;
List<byte[]> miniPackets = new LinkedList(); List<byte[]> miniPackets = new LinkedList();
byte[] data = stream.getBytes(); byte[] data = stream.toByteArray();
ByteArrayInputStream bis = new ByteArrayInputStream( data, 0, stream.size() ); ByteArrayInputStream bis = new ByteArrayInputStream( data, 0, stream.size() );
while (bis.available() > 0) while (bis.available() > 0)

View file

@ -8,8 +8,8 @@ import java.util.Date;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import appeng.core.AELog;
import appeng.core.AEConfig; import appeng.core.AEConfig;
import appeng.core.AELog;
public class VersionChecker implements Runnable public class VersionChecker implements Runnable
{ {