Fixed Network Transmitter not dropping inventory when broken, fixes issue #257
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
|
||||
### 0.8.18
|
||||
**Bugfixes**
|
||||
- Fixed detector mode not persisting
|
||||
- Fixed Detector mode not persisting
|
||||
- Fixed bug where scrollbar didn't scroll correctly and thus hiding some items
|
||||
- Fixed Network Transmitter not dropping inventory when broken
|
||||
|
||||
### 0.8.17
|
||||
**Bugfixes**
|
||||
|
@@ -9,7 +9,7 @@ import javax.annotation.Nullable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Represents a storage sink for the storage network.
|
||||
* Represents an item storage sink for the storage network.
|
||||
* Provide this through an {@link IStorageProvider}.
|
||||
*/
|
||||
public interface IItemStorage {
|
||||
|
@@ -4,6 +4,8 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.datasync.DataSerializers;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraftforge.items.IItemHandler;
|
||||
import net.minecraftforge.items.wrapper.CombinedInvWrapper;
|
||||
import refinedstorage.RefinedStorage;
|
||||
import refinedstorage.RefinedStorageItems;
|
||||
import refinedstorage.api.network.NetworkUtils;
|
||||
@@ -118,6 +120,11 @@ public class TileNetworkTransmitter extends TileNode {
|
||||
return upgrades;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IItemHandler getDrops() {
|
||||
return new CombinedInvWrapper(networkCard, upgrades);
|
||||
}
|
||||
|
||||
public BlockPos getReceiver() {
|
||||
return receiver;
|
||||
}
|
||||
|
Reference in New Issue
Block a user