1
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:
TheBusyBiscuit 2018-02-20 23:34:13 +01:00 committed by GitHub
commit b69e80dfaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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