summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-15 20:55:56 +1100
committermd_5 <md_5@bigpond.com>2012-03-15 20:55:56 +1100
commitcf000b04e40f9cd9d55cf425c9b50daa3b0e473f (patch)
tree7cbcca787bbcec9fb7069d7edbd2810ddee88699
parent79cd8d60659f7bb8e9ed8c851b7815c1b99dcacf (diff)
downloadEssentials-cf000b04e40f9cd9d55cf425c9b50daa3b0e473f.tar
Essentials-cf000b04e40f9cd9d55cf425c9b50daa3b0e473f.tar.gz
Essentials-cf000b04e40f9cd9d55cf425c9b50daa3b0e473f.tar.lz
Essentials-cf000b04e40f9cd9d55cf425c9b50daa3b0e473f.tar.xz
Essentials-cf000b04e40f9cd9d55cf425c9b50daa3b0e473f.zip
Fill the entire sign with free goodness
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignFree.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignFree.java b/Essentials/src/com/earth2me/essentials/signs/SignFree.java
index c7adec307..52e2b9540 100644
--- a/Essentials/src/com/earth2me/essentials/signs/SignFree.java
+++ b/Essentials/src/com/earth2me/essentials/signs/SignFree.java
@@ -34,8 +34,8 @@ public class SignFree extends EssentialsSign
throw new SignException(_("cantSpawnItem", "Air"));
}
- item.setAmount(item.getType().getMaxStackSize());
- Inventory i = ess.getServer().createInventory(player, InventoryType.CHEST);
+ item.setAmount(item.getType().getMaxStackSize() * 36);
+ Inventory i = ess.getServer().createInventory(player, 36);
i.addItem(item);
player.openInventory(i);
Trade.log("Sign", "Free", "Interact", username, null, username, new Trade(item, ess), sign.getBlock().getLocation(), ess);