add list support to Accept Items
This commit is contained in:
parent
6aa3b6e04f
commit
bbaf0a1b7d
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@ Additions:
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
* Rendering helmet overlays on robots is now supported (hea3ven)
|
* Rendering helmet overlays on robots is now supported (hea3ven)
|
||||||
|
* The Accept Items action now supports Lists (asie)
|
||||||
* The builder robot will not pick up materials in creative worlds (hea3ven)
|
* The builder robot will not pick up materials in creative worlds (hea3ven)
|
||||||
|
|
||||||
Bugs fixed:
|
Bugs fixed:
|
||||||
|
|
|
@ -17,7 +17,7 @@ import buildcraft.api.robots.DockingStation;
|
||||||
import buildcraft.api.robots.EntityRobotBase;
|
import buildcraft.api.robots.EntityRobotBase;
|
||||||
import buildcraft.api.transport.IInjectable;
|
import buildcraft.api.transport.IInjectable;
|
||||||
import buildcraft.core.lib.inventory.InventoryIterator;
|
import buildcraft.core.lib.inventory.InventoryIterator;
|
||||||
import buildcraft.core.lib.inventory.filters.ArrayStackFilter;
|
import buildcraft.core.lib.inventory.filters.ArrayStackOrListFilter;
|
||||||
import buildcraft.robotics.statements.ActionRobotFilter;
|
import buildcraft.robotics.statements.ActionRobotFilter;
|
||||||
import buildcraft.robotics.statements.ActionStationInputItems;
|
import buildcraft.robotics.statements.ActionStationInputItems;
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public class AIRobotUnload extends AIRobot {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ActionRobotFilter
|
if (!ActionRobotFilter
|
||||||
.canInteractWithItem(station, new ArrayStackFilter(robotSlot.getStackInSlot()),
|
.canInteractWithItem(station, new ArrayStackOrListFilter(robotSlot.getStackInSlot()),
|
||||||
ActionStationInputItems.class)) {
|
ActionStationInputItems.class)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue