diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-31 17:57:57 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-31 17:57:57 +0100 |
commit | 4015351c854c692d5d1b234f1eb6d8f7ce1c4f29 (patch) | |
tree | 16aece1601a4e5e602751d8776dde508dd9fc578 | |
parent | e89f1d8a0374f8c184043289c89782ca6298cb72 (diff) | |
download | Essentials-4015351c854c692d5d1b234f1eb6d8f7ce1c4f29.tar Essentials-4015351c854c692d5d1b234f1eb6d8f7ce1c4f29.tar.gz Essentials-4015351c854c692d5d1b234f1eb6d8f7ce1c4f29.tar.lz Essentials-4015351c854c692d5d1b234f1eb6d8f7ce1c4f29.tar.xz Essentials-4015351c854c692d5d1b234f1eb6d8f7ce1c4f29.zip |
Sanity Check.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandrepair.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java index 9cb3577ee..708e53586 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandrepair.java @@ -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")); } |