summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-20 16:44:51 -0700
committersnowleo <schneeleo@gmail.com>2011-07-20 16:44:51 -0700
commited29f296228fc8395c980f125525e3e083a6f4bd (patch)
tree8aa02bfbf08f3db4015c72b27cbc77221dcb3ee9
parentb8e41df0f6707846bcb8d25ee68a35b0024478ec (diff)
parentd5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4 (diff)
downloadEssentials-ed29f296228fc8395c980f125525e3e083a6f4bd.tar
Essentials-ed29f296228fc8395c980f125525e3e083a6f4bd.tar.gz
Essentials-ed29f296228fc8395c980f125525e3e083a6f4bd.tar.lz
Essentials-ed29f296228fc8395c980f125525e3e083a6f4bd.tar.xz
Essentials-ed29f296228fc8395c980f125525e3e083a6f4bd.zip
Merge pull request #15 from khobbits/patch-3
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")