mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-08 21:54:58 +00:00
don't let the player use multiple tokens at once
This commit is contained in:
@@ -75,6 +75,11 @@ public class AnvilEvent implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
// don't let the player use more than one
|
||||
if (secondSlot.getAmount() > 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
// clone the item
|
||||
ItemStack clone = firstSlot.clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user