mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Sanity Check.
This commit is contained in:
parent
e89f1d8a03
commit
4015351c85
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ public class Commandrepair extends EssentialsCommand
|
|||
if (args[0].equalsIgnoreCase("hand"))
|
||||
{
|
||||
final ItemStack item = user.getItemInHand();
|
||||
if (item == null)
|
||||
if (item == null || item.getType().isBlock() || item.getDurability() == 0)
|
||||
{
|
||||
throw new Exception(_("repairInvalidType"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue