diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-11-22 04:55:21 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-11-22 04:55:21 +0000 |
commit | 212442ab1c89f8454cb3b052082245cf6c744d36 (patch) | |
tree | 2d4bf2e2c9c848648c9eb443e8a4dcca1d32ced8 | |
parent | bf244fff800e0761d6eb439c24b763024fc8475b (diff) | |
download | Essentials-212442ab1c89f8454cb3b052082245cf6c744d36.tar Essentials-212442ab1c89f8454cb3b052082245cf6c744d36.tar.gz Essentials-212442ab1c89f8454cb3b052082245cf6c744d36.tar.lz Essentials-212442ab1c89f8454cb3b052082245cf6c744d36.tar.xz Essentials-212442ab1c89f8454cb3b052082245cf6c744d36.zip |
Fixing inventory method calls.
Bug report: http://pastie.org/2901587
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignDisposal.java | 2 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignFree.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignDisposal.java b/Essentials/src/com/earth2me/essentials/signs/SignDisposal.java index 46272a6b8..f747ac07c 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignDisposal.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignDisposal.java @@ -15,7 +15,7 @@ public class SignDisposal extends EssentialsSign @Override protected boolean onSignInteract(final ISign sign, final User player, final String username, final IEssentials ess) { - ShowInventory.showEmptyInventory(player); + ShowInventory.showEmptyInventory(player.getBase()); return true; } } diff --git a/Essentials/src/com/earth2me/essentials/signs/SignFree.java b/Essentials/src/com/earth2me/essentials/signs/SignFree.java index 197c0606f..7af7dffd7 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignFree.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignFree.java @@ -33,7 +33,7 @@ public class SignFree extends EssentialsSign } item.setAmount(item.getType().getMaxStackSize() * 9 * 4); - ShowInventory.showFilledInventory(player, item); + ShowInventory.showFilledInventory(player.getBase(), item); Trade.log("Sign", "Free", "Interact", username, null, username, new Trade(item, ess), sign.getBlock().getLocation(), ess); return true; } |