mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Merge pull request #608 from VoidAngel/patch-1
Fix for #532 - Limited disenchanter dupe glitch
This commit is contained in:
commit
b69e80dfaa
@ -116,6 +116,7 @@ public class AutoDisenchanter extends AContainer {
|
||||
}
|
||||
if (amount > 0) {
|
||||
ItemStack newItem = item.clone();
|
||||
newItem.setAmount(1);
|
||||
ItemStack book = target.clone();
|
||||
book.setAmount(1);
|
||||
book.setType(Material.ENCHANTED_BOOK);
|
||||
|
Loading…
Reference in New Issue
Block a user