mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-08 05:34: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;
|
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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user