From 98bdc6e2cc16a1dd381802dbc9fd398f7ee80022 Mon Sep 17 00:00:00 2001 From: Touchie771 Date: Sun, 13 Sep 2026 11:26:13 +0300 Subject: [PATCH 1/2] Return glass bottles when condensing honey bottles --- .../com/earth2me/essentials/commands/Commandcondense.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java index 26f75d27d8..fc9f6acbe2 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java @@ -100,6 +100,11 @@ private boolean condenseStack(final User user, final ItemStack stack, final bool final Trade add = new Trade(result, ess); remove.charge(user); add.pay(user, OverflowType.DROP); + final Material remainingItemType = input.getType().getCraftingRemainingItem(); + if (remainingItemType != Material.GLASS_BOTTLE) return true; + final int remainingItems = input.getAmount(); + final Trade returnRemainder = new Trade(new ItemStack(remainingItemType, remainingItems), ess); + returnRemainder.pay(user, OverflowType.DROP); return true; } } From 7ddcffc448697b955c2222cbd143dd675877e3d5 Mon Sep 17 00:00:00 2001 From: Touchie771 Date: Sun, 13 Sep 2026 11:52:30 +0300 Subject: [PATCH 2/2] Make remainders work for any type, not just bottles --- .../java/com/earth2me/essentials/commands/Commandcondense.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java index fc9f6acbe2..c56f438fa0 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandcondense.java @@ -101,7 +101,7 @@ private boolean condenseStack(final User user, final ItemStack stack, final bool remove.charge(user); add.pay(user, OverflowType.DROP); final Material remainingItemType = input.getType().getCraftingRemainingItem(); - if (remainingItemType != Material.GLASS_BOTTLE) return true; + if (remainingItemType == null) return true; final int remainingItems = input.getAmount(); final Trade returnRemainder = new Trade(new ItemStack(remainingItemType, remainingItems), ess); returnRemainder.pay(user, OverflowType.DROP);