From 62aa5c4175201c54ba06f2d54e5cf25bcad61b04 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 12 May 2014 23:28:29 -0500 Subject: [PATCH] Minor derp. --- container/AEBaseContainer.java | 7 +++---- services/VersionChecker.java | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/container/AEBaseContainer.java b/container/AEBaseContainer.java index 335aeb0c..41bc5fdd 100644 --- a/container/AEBaseContainer.java +++ b/container/AEBaseContainer.java @@ -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 miniPackets = new LinkedList(); - byte[] data = stream.getBytes(); + byte[] data = stream.toByteArray(); ByteArrayInputStream bis = new ByteArrayInputStream( data, 0, stream.size() ); while (bis.available() > 0) diff --git a/services/VersionChecker.java b/services/VersionChecker.java index 659d2068..d2922b38 100644 --- a/services/VersionChecker.java +++ b/services/VersionChecker.java @@ -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 {