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.getVillagerExperience(),
|
||||||
oldRecipe.getPriceMultiplier());
|
oldRecipe.getPriceMultiplier());
|
||||||
List<ItemStack> ingredients = oldRecipe.getIngredients();
|
List<ItemStack> ingredients = oldRecipe.getIngredients();
|
||||||
|
recipe.setPriceMultiplier(oldRecipe.getPriceMultiplier()); // idk either, no idea why it doesn't work
|
||||||
ingredients.forEach(EnchantDisplay::displayEnchantments);
|
ingredients.forEach(EnchantDisplay::displayEnchantments);
|
||||||
recipe.setIngredients(ingredients);
|
recipe.setIngredients(ingredients);
|
||||||
return recipe;
|
return recipe;
|
||||||
|
@ -111,9 +111,9 @@ public class DropQueue {
|
|||||||
if (hasTelekinesis) {
|
if (hasTelekinesis) {
|
||||||
for (ItemStack drop : items) {
|
for (ItemStack drop : items) {
|
||||||
HashMap<Integer, ItemStack> nope = player.getInventory().addItem(drop);
|
HashMap<Integer, ItemStack> nope = player.getInventory().addItem(drop);
|
||||||
for(Map.Entry<Integer, ItemStack> entry : nope.entrySet()) {
|
nope.forEach(((integer, itemStack) -> {
|
||||||
world.dropItemNaturally(loc.add(0.5, 0, 0.5), drop).setVelocity(new Vector());
|
world.dropItemNaturally(loc.add(0.5, 0, 0.5), itemStack).setVelocity(new Vector());
|
||||||
}
|
}));
|
||||||
}
|
}
|
||||||
if (xp > 0) {
|
if (xp > 0) {
|
||||||
if(EcoEnchants.TELEKINESIS.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "use-orb")) {
|
if(EcoEnchants.TELEKINESIS.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "use-orb")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user