Fix Platform#postChanges to check all registered channels (#3644)
This commit is contained in:
@@ -39,6 +39,7 @@ import appeng.api.networking.crafting.ICraftingLink;
|
||||
import appeng.api.networking.crafting.ICraftingRequester;
|
||||
import appeng.api.networking.energy.IEnergySource;
|
||||
import appeng.api.networking.security.IActionSource;
|
||||
import appeng.api.networking.storage.IStorageGrid;
|
||||
import appeng.api.storage.IMEInventory;
|
||||
import appeng.api.storage.IStorageChannel;
|
||||
import appeng.api.storage.IStorageHelper;
|
||||
@@ -119,6 +120,17 @@ public class ApiStorage implements IStorageHelper
|
||||
return Platform.poweredExtraction( energy, inv, request, src, mode );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postChanges( IStorageGrid gs, ItemStack removedCell, ItemStack addedCell, IActionSource src )
|
||||
{
|
||||
Preconditions.checkNotNull( gs );
|
||||
Preconditions.checkNotNull( removedCell );
|
||||
Preconditions.checkNotNull( addedCell );
|
||||
Preconditions.checkNotNull( src );
|
||||
|
||||
Platform.postChanges( gs, removedCell, addedCell, src );
|
||||
}
|
||||
|
||||
private static final class ItemStorageChannel implements IItemStorageChannel
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user