Post cherry-pick updates
This commit is contained in:
parent
15f5392a62
commit
ffa75aba8d
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
|
||||||
|
|
||||||
if (!hasOutputSpace(recipe.getOutput(), OUTPUT_SLOT)) return false;
|
if (!hasOutputSpace(recipe.getOutput(), OUTPUT_SLOT)) return false;
|
||||||
|
|
||||||
DefaultedList<ItemStack> remainingStacks = recipe.getRemainingStacks(crafting);
|
DefaultedList<ItemStack> remainingStacks = recipe.getRemainder(crafting);
|
||||||
for (ItemStack stack : remainingStacks){
|
for (ItemStack stack : remainingStacks){
|
||||||
if (!stack.isEmpty() && !hasRoomForExtraItem(stack)) return false;
|
if (!stack.isEmpty() && !hasRoomForExtraItem(stack)) return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,7 @@ public class DebugToolItem extends Item {
|
||||||
MutableText s = new LiteralText("BlockEntity Tags:").formatted(Formatting.GREEN);
|
MutableText s = new LiteralText("BlockEntity Tags:").formatted(Formatting.GREEN);
|
||||||
|
|
||||||
BlockDataObject bdo = new BlockDataObject(blockEntity, blockEntity.getPos());
|
BlockDataObject bdo = new BlockDataObject(blockEntity, blockEntity.getPos());
|
||||||
s.append(bdo.getTag().toText());
|
s.append(bdo.getNbt().toString());
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue