don't let the player use multiple tokens at once

This commit is contained in:
hyperdefined
2025-01-26 13:15:39 -05:00
parent b8ac32f9b4
commit dd584fd2b8

View File

@@ -75,6 +75,11 @@ public class AnvilEvent implements Listener {
return; return;
} }
// don't let the player use more than one
if (secondSlot.getAmount() > 1) {
return;
}
// clone the item // clone the item
ItemStack clone = firstSlot.clone(); ItemStack clone = firstSlot.clone();