Fix null teleport costs.

This commit is contained in:
KHobbits 2014-03-23 18:12:33 +00:00
parent 0b5718f7ff
commit 3538728733

View file

@ -110,7 +110,10 @@ public class TimedTeleport implements Runnable
{
cancelTimer(false);
teleportUser.sendMessage(_("teleportationCommencing"));
timer_chargeFor.isAffordableFor(teleportOwner);
if (timer_chargeFor != null)
{
timer_chargeFor.isAffordableFor(teleportOwner);
}
if (timer_respawn)
{
teleport.respawnNow(teleportUser, timer_cause);