add a loop mode to the quarry, fixes #2709
This commit is contained in:
parent
c686cf7e8d
commit
d8224f5edb
2 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
Additions:
|
||||
|
||||
* [#2692] Restore config option to make filler/builder drop blocks (hea3ven)
|
||||
* [#2709] Add a loop mode to the quarry (hea3ven)
|
||||
|
||||
Bugs fixed:
|
||||
|
||||
|
|
|
@ -173,7 +173,11 @@ public class TileQuarry extends TileAbstractBuilder implements IHasWork, ISidedI
|
|||
}
|
||||
|
||||
if (stage == Stage.DONE) {
|
||||
return;
|
||||
if (mode == Mode.Loop) {
|
||||
stage = Stage.IDLE;
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!areChunksLoaded()) {
|
||||
|
@ -901,7 +905,7 @@ public class TileQuarry extends TileAbstractBuilder implements IHasWork, ISidedI
|
|||
|
||||
@Override
|
||||
public boolean acceptsControlMode(Mode mode) {
|
||||
return mode == Mode.Off || mode == Mode.On;
|
||||
return mode == Mode.Off || mode == Mode.On || mode == Mode.Loop;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue