[trunk] Fix chargeFor on teleports

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1379 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-05-08 23:28:23 +00:00
parent dae0ce78d1
commit 80e0b84875

View file

@ -174,12 +174,12 @@ public class Teleport implements Runnable
public void teleport(Location loc, String name) throws Exception public void teleport(Location loc, String name) throws Exception
{ {
teleport(new Target(loc), chargeFor); teleport(new Target(loc), name);
} }
public void teleport(Entity entity, String name) throws Exception public void teleport(Entity entity, String name) throws Exception
{ {
teleport(new Target(entity), chargeFor); teleport(new Target(entity), name);
} }
private void teleport(Target target, String chargeFor) throws Exception private void teleport(Target target, String chargeFor) throws Exception