diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-05-22 00:39:23 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-05-22 00:39:23 +0100 |
commit | b841878a33759a414483cb7d0883549a9b9f120e (patch) | |
tree | 444a26b270fba9ffaae9698c88f17e8215eea462 /Essentials/src/com/earth2me/essentials/Teleport.java | |
parent | e4e1c950b5c04ebb48742379f2fa06272ca1b28c (diff) | |
download | Essentials-b841878a33759a414483cb7d0883549a9b9f120e.tar Essentials-b841878a33759a414483cb7d0883549a9b9f120e.tar.gz Essentials-b841878a33759a414483cb7d0883549a9b9f120e.tar.lz Essentials-b841878a33759a414483cb7d0883549a9b9f120e.tar.xz Essentials-b841878a33759a414483cb7d0883549a9b9f120e.zip |
Patch null error in /home after recent update.
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/Teleport.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Teleport.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Teleport.java b/Essentials/src/com/earth2me/essentials/Teleport.java index 9c21ffc6d..9d05f9368 100644 --- a/Essentials/src/com/earth2me/essentials/Teleport.java +++ b/Essentials/src/com/earth2me/essentials/Teleport.java @@ -277,14 +277,9 @@ public class Teleport implements Runnable, ITeleport { now(new Target(user.getLastLocation()), TeleportCause.COMMAND); } - - public void home(IUser user, String home, Trade chargeFor) throws Exception + + public void home(Location loc, Trade chargeFor) throws Exception { - final Location loc = user.getHome(home); - if (loc == null) - { - throw new NotEnoughArgumentsException(); - } teleport(new Target(loc), chargeFor, TeleportCause.COMMAND); } } |