Bugfixes
This commit is contained in:
@@ -33,8 +33,6 @@ public class UnitFactory extends UnitBlock{
|
||||
hasPower = true;
|
||||
hasItems = true;
|
||||
solid = true;
|
||||
//flags = EnumSet.of(BlockFlag.producer, BlockFlag.unitModifier);
|
||||
//unitCapModifier = 2;
|
||||
configurable = true;
|
||||
outputsPayload = true;
|
||||
rotate = true;
|
||||
@@ -44,6 +42,11 @@ public class UnitFactory extends UnitBlock{
|
||||
tile.progress = 0;
|
||||
});
|
||||
|
||||
config(UnitType.class, (UnitFactoryBuild tile, UnitType val) -> {
|
||||
tile.currentPlan = plans.indexOf(p -> p.unit == val);
|
||||
tile.progress = 0;
|
||||
});
|
||||
|
||||
consumes.add(new ConsumeItemDynamic((UnitFactoryBuild e) -> e.currentPlan != -1 ? plans.get(e.currentPlan).requirements : ItemStack.empty));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user