Fix server crash

This commit is contained in:
Zontreck 2024-03-04 17:22:36 -07:00
parent 724abc6dbd
commit 94a061bed6
2 changed files with 3 additions and 1 deletions

View file

@ -254,6 +254,8 @@ public class UncrafterBlockEntity extends BlockEntity implements MenuProvider, I
if(hasRecipe(entity))
{
entity.outputItems.setStackInSlot(0, entity.itemsHandler.extractItem(0, 1, false));
entity.resetProgress();
}
}

View file

@ -82,7 +82,7 @@ public class UncrafterScreen extends AbstractContainerScreen<UncrafterMenu> impl
{
if(menu.isCrafting())
{
stack.blit(TEXTURE, leftPos+68, topPos+52, 2, 210, menu.getScaledProgress(),9);
stack.blit(TEXTURE, leftPos+69, topPos+45, 2, 210, menu.getScaledProgress(),7);
}
}