mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed bugs
This commit is contained in:
parent
2d8fa4accf
commit
d3369103a3
@ -31,6 +31,7 @@ public final class PacketOpenWindowMerchant extends AbstractPacketAdapter {
|
||||
oldRecipe.getVillagerExperience(),
|
||||
oldRecipe.getPriceMultiplier());
|
||||
List<ItemStack> 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;
|
||||
|
@ -111,9 +111,9 @@ public class DropQueue {
|
||||
if (hasTelekinesis) {
|
||||
for (ItemStack drop : items) {
|
||||
HashMap<Integer, ItemStack> nope = player.getInventory().addItem(drop);
|
||||
for(Map.Entry<Integer, ItemStack> 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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user