mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
commit
77aff8791a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user