Fix errors

This commit is contained in:
Raoul Van den Berge
2016-11-11 11:49:36 +01:00
parent 18e239985d
commit e59d7eee99
4 changed files with 11 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import com.raoulvdberge.refinedstorage.api.autocrafting.craftingmonitor.ICraftin
import com.raoulvdberge.refinedstorage.api.autocrafting.craftingmonitor.ICraftingMonitorElementRegistry;
import com.raoulvdberge.refinedstorage.api.autocrafting.preview.ICraftingPreviewElementRegistry;
import com.raoulvdberge.refinedstorage.api.autocrafting.registry.ICraftingTaskRegistry;
import com.raoulvdberge.refinedstorage.api.network.INetworkMaster;
import com.raoulvdberge.refinedstorage.api.network.readerwriter.IReaderWriterChannel;
import com.raoulvdberge.refinedstorage.api.network.readerwriter.IReaderWriterHandlerRegistry;
import com.raoulvdberge.refinedstorage.api.solderer.ISoldererRegistry;
@@ -60,7 +61,7 @@ public interface IRSAPI {
* @return a new reader writer channel
*/
@Nonnull
IReaderWriterChannel createReaderWriterChannel();
IReaderWriterChannel createReaderWriterChannel(INetworkMaster network);
/**
* @return an empty item stack list

View File

@@ -6,6 +6,7 @@ import com.raoulvdberge.refinedstorage.api.autocrafting.craftingmonitor.ICraftin
import com.raoulvdberge.refinedstorage.api.autocrafting.craftingmonitor.ICraftingMonitorElementRegistry;
import com.raoulvdberge.refinedstorage.api.autocrafting.preview.ICraftingPreviewElementRegistry;
import com.raoulvdberge.refinedstorage.api.autocrafting.registry.ICraftingTaskRegistry;
import com.raoulvdberge.refinedstorage.api.network.INetworkMaster;
import com.raoulvdberge.refinedstorage.api.network.readerwriter.IReaderWriterChannel;
import com.raoulvdberge.refinedstorage.api.network.readerwriter.IReaderWriterHandlerRegistry;
import com.raoulvdberge.refinedstorage.api.solderer.ISoldererRegistry;
@@ -78,8 +79,8 @@ public class API implements IRSAPI {
@Nonnull
@Override
public IReaderWriterChannel createReaderWriterChannel() {
return new ReaderWriterChannel();
public IReaderWriterChannel createReaderWriterChannel(INetworkMaster network) {
return new ReaderWriterChannel(network);
}
@Nonnull

View File

@@ -57,6 +57,11 @@ public class ReaderWriterHandlerItems implements IReaderWriterHandler {
}
}
@Override
public void onConnectionChange(boolean state) {
// NO OP
}
@Override
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
RSUtils.writeItems(internalInv, 0, tag);

View File

@@ -827,7 +827,7 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
for (int i = 0; i < readerWriterChannelsList.tagCount(); ++i) {
NBTTagCompound channelTag = readerWriterChannelsList.getCompoundTagAt(i);
IReaderWriterChannel channel = API.instance().createReaderWriterChannel();
IReaderWriterChannel channel = API.instance().createReaderWriterChannel(this);
channel.readFromNBT(channelTag);