Fix Recycler using power when output full, and made it upgradeable
This commit is contained in:
parent
626bae1833
commit
1582d419df
1 changed files with 4 additions and 4 deletions
|
@ -94,7 +94,7 @@ public class TileRecycler extends TilePowerAcceptor
|
|||
} else if (this.getStackInSlot(slot).getCount() < this.getStackInSlot(slot).getMaxStackSize()) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isBurning() {
|
||||
|
@ -125,10 +125,10 @@ public class TileRecycler extends TilePowerAcceptor
|
|||
if (this.canRecycle() && !this.isBurning() && this.getEnergy() != 0)
|
||||
this.setBurning(true);
|
||||
else if (this.isBurning()) {
|
||||
if (this.useEnergy(this.cost) != this.cost)
|
||||
if (this.useEnergy(getEuPerTick(this.cost)) != getEuPerTick(this.cost))
|
||||
this.setBurning(false);
|
||||
this.progress++;
|
||||
if (this.progress >= this.time) {
|
||||
if (this.progress >= Math.max((int) (this.time* (1.0 - getSpeedMultiplier())), 1)) {
|
||||
this.progress = 0;
|
||||
this.recycleItems();
|
||||
updateInventory = true;
|
||||
|
@ -172,7 +172,7 @@ public class TileRecycler extends TilePowerAcceptor
|
|||
// TileLegacyMachineBase
|
||||
@Override
|
||||
public boolean canBeUpgraded() {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// IToolDrop
|
||||
|
|
Loading…
Add table
Reference in a new issue