Skip to content

Commit

Permalink
Fix Advanced inscriber consuming power and continuing working animation
Browse files Browse the repository at this point in the history
closes #28
  • Loading branch information
ProjectET committed Jul 27, 2024
1 parent d0acd79 commit 0733f50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void addAdditionalDrops(Level level, BlockPos pos, List<ItemStack> drops)
}

private boolean hasWork() {
if (this.getTask() != null) {
if (this.getTask() != null && sideItemHandler.getStackInSlot(1).getCount() != 64) {
return true;
}

Expand Down Expand Up @@ -237,7 +237,7 @@ public TickingRequest getTickingRequest(IGridNode node) {
@Override
public TickRateModulation tickingRequest(IGridNode node, int ticksSinceLastCall) {
matchWork();
if(getTask() != null) {
if(getTask() != null && sideItemHandler.getStackInSlot(1).getCount() != 64) {
getMainNode().ifPresent(grid -> {
IEnergyService eg = grid.getEnergyService();
IEnergySource src = this;
Expand Down

0 comments on commit 0733f50

Please sign in to comment.