From d5c8d0c1bf9767c1a5d5e86ea34f76b466b328e4 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 20 Jul 2011 08:15:40 -0700 Subject: [PATCH] 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. --- .../src/com/earth2me/essentials/commands/Commandunlimited.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")