Fix server crash
This commit is contained in:
parent
724abc6dbd
commit
94a061bed6
2 changed files with 3 additions and 1 deletions
|
@ -254,6 +254,8 @@ public class UncrafterBlockEntity extends BlockEntity implements MenuProvider, I
|
||||||
|
|
||||||
if(hasRecipe(entity))
|
if(hasRecipe(entity))
|
||||||
{
|
{
|
||||||
|
entity.outputItems.setStackInSlot(0, entity.itemsHandler.extractItem(0, 1, false));
|
||||||
|
entity.resetProgress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class UncrafterScreen extends AbstractContainerScreen<UncrafterMenu> impl
|
||||||
{
|
{
|
||||||
if(menu.isCrafting())
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue