1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

Merge pull request #1620 from StarWishsama/patch-2

Fixed #1613
This commit is contained in:
TheBusyBiscuit 2020-03-06 09:30:22 +01:00 committed by GitHub
commit 77aff8791a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ public class AutoEnchanter extends AContainer {
if (amount > 0 && specialAmount <= SlimefunPlugin.getSettings().emeraldEnchantsLimit) {
ItemStack newItem = target.clone();
newItem.setAmount(1);
for (Map.Entry<Enchantment, Integer> entry : enchantments.entrySet()) {
newItem.addUnsafeEnchantment(entry.getKey(), entry.getValue());