Skip to content

Commit

Permalink
Fix #4569
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Jan 15, 2024
1 parent 8e6535c commit f743fb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ protected void renderBg(@NotNull GuiGraphics guiGraphics, float partialTicks, in

if(!has && mc.player.experienceLevel < xpMin) {
text = I18n.get("quark.gui.enchanting.min", xpMin);
x += 4;
}

x -= font.width(text) / 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ public boolean hasSpace(Container inv, Direction dir, ItemStack stack) {
IntStream stream = getAvailableSlots(inv, dir);
int inserted = 0;
int slotMax = Math.min(stack.getMaxStackSize(), inv.getMaxStackSize());
if (inv instanceof CrafterBlockEntity) {
if (CrafterModule.useEmiLogic && inv instanceof CrafterBlockEntity) {
slotMax = 1;
}

for (int i : stream.toArray()) {
if (inv instanceof WorldlyContainer si && !si.canPlaceItemThroughFace(i, stack, dir)) {
continue;
Expand Down

0 comments on commit f743fb6

Please sign in to comment.