mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
29 lines
1.6 KiB
Diff
29 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Lumine1909 <133463833+Lumine1909@users.noreply.github.com>
|
|
Date: Wed, 26 Jun 2024 17:59:56 +0800
|
|
Subject: [PATCH] Allow grindstone overstacking
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java b/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
|
index 5687f492fc76f699e2a388790ca5380d9b8c8d0a..53e79f2ca799b8de7d6410dbb3dafa1cb2eff7b6 100644
|
|
--- a/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
|
+++ b/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
|
@@ -194,7 +194,7 @@ public class GrindstoneMenu extends AbstractContainerMenu {
|
|
byte b0 = 1;
|
|
|
|
if (!firstInput.isDamageableItem()) {
|
|
- if (firstInput.getMaxStackSize() < 2 || !ItemStack.matches(firstInput, secondInput)) {
|
|
+ if (!org.leavesmc.leaves.LeavesConfig.modify.oldMC.allowGrindstoneOverstacking && firstInput.getMaxStackSize() < 2 || !ItemStack.matches(firstInput, secondInput)) { // Leaves - allowGrindstoneOverstaking
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|
|
@@ -278,7 +278,7 @@ public class GrindstoneMenu extends AbstractContainerMenu {
|
|
ItemStack itemstack3 = this.repairSlots.getItem(1);
|
|
|
|
if (slot == 2) {
|
|
- if (!this.moveItemStackTo(itemstack1, 3, 39, true)) {
|
|
+ if (!this.moveItemStackTo(itemstack1, 3, 39, true, org.leavesmc.leaves.LeavesConfig.modify.oldMC.allowGrindstoneOverstacking)) { // Leaves - allowGrindstoneOverstacking: Disable stack check
|
|
return ItemStack.EMPTY;
|
|
}
|
|
|