summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-07-20 08:15:40 -0700
committerKHobbits <rob@khobbits.co.uk>2011-07-20 08:15:40 -0700
commitd5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4 (patch)
tree08f64b5e152e23469445210a0de49d24c73331e2
parent0483635a5cba2f4a03458f8eea028e3e76c1eb7b (diff)
downloadEssentials-d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4.tar
Essentials-d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4.tar.gz
Essentials-d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4.tar.lz
Essentials-d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4.tar.xz
Essentials-d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4.zip
Not sure how well this would work, but its probably worth giving the user at least two of the item to combat client lag, if you try and build something with unlimited, but you only have 1 item, client lag prevents you from doing so quickly, because you need to wait for the server to give you back the item.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
index cc519113c..7eb1e8f9d 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java
@@ -55,7 +55,7 @@ public class Commandunlimited extends EssentialsCommand
return;
}
- ItemStack stack = ess.getItemDb().get(args[0], 1);
+ ItemStack stack = ess.getItemDb().get(args[0], 2);
String itemname = stack.getType().toString().toLowerCase().replace("_", "");
if (!user.isAuthorized("essentials.unlimited.item-all")