Fix errors
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user