Fixed bugs

This commit is contained in:
Auxilor 2020-10-10 13:23:20 +01:00
parent 2d8fa4accf
commit d3369103a3
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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")) {