diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java b/Plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java index c11e3eb7..09c966cd 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java @@ -31,6 +31,7 @@ public final class PacketOpenWindowMerchant extends AbstractPacketAdapter { oldRecipe.getVillagerExperience(), oldRecipe.getPriceMultiplier()); List ingredients = oldRecipe.getIngredients(); + recipe.setPriceMultiplier(oldRecipe.getPriceMultiplier()); // idk either, no idea why it doesn't work ingredients.forEach(EnchantDisplay::displayEnchantments); recipe.setIngredients(ingredients); return recipe; diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/queue/DropQueue.java b/Plugin/src/main/java/com/willfp/ecoenchants/queue/DropQueue.java index 6f7eae25..fbc757bf 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/queue/DropQueue.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/queue/DropQueue.java @@ -111,9 +111,9 @@ public class DropQueue { if (hasTelekinesis) { for (ItemStack drop : items) { HashMap nope = player.getInventory().addItem(drop); - for(Map.Entry entry : nope.entrySet()) { - world.dropItemNaturally(loc.add(0.5, 0, 0.5), drop).setVelocity(new Vector()); - } + nope.forEach(((integer, itemStack) -> { + world.dropItemNaturally(loc.add(0.5, 0, 0.5), itemStack).setVelocity(new Vector()); + })); } if (xp > 0) { if(EcoEnchants.TELEKINESIS.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "use-orb")) {