summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-11-22 04:55:21 +0000
committerKHobbits <rob@khobbits.co.uk>2011-11-22 04:55:21 +0000
commit212442ab1c89f8454cb3b052082245cf6c744d36 (patch)
tree2d4bf2e2c9c848648c9eb443e8a4dcca1d32ced8
parentbf244fff800e0761d6eb439c24b763024fc8475b (diff)
downloadEssentials-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.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignFree.java2
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;
}