Empty teleportation desc means silence as well.

This commit is contained in:
Olof Larsson 2016-01-01 17:12:15 +01:00
parent 1d59e348ed
commit b050c768d8

View File

@ -91,7 +91,7 @@ public class TeleportMixinDefault extends TeleportMixinAbstract
if (delaySeconds > 0) if (delaySeconds > 0)
{ {
// With delay // With delay
if (desc != null) if (desc != null && ! desc.isEmpty())
{ {
Mixin.msgOne(teleporteeId, "<i>Teleporting to <h>"+desc+" <i>in <h>"+delaySeconds+"s <i>unless you move."); Mixin.msgOne(teleporteeId, "<i>Teleporting to <h>"+desc+" <i>in <h>"+delaySeconds+"s <i>unless you move.");
} }
@ -113,7 +113,7 @@ public class TeleportMixinDefault extends TeleportMixinAbstract
destination = event.getDestination(); destination = event.getDestination();
desc = destination.getDesc(teleporteeId); desc = destination.getDesc(teleporteeId);
if (desc != null) if (desc != null && ! desc.isEmpty())
{ {
Mixin.msgOne(teleporteeId, "<i>Teleporting to <h>"+desc+"<i>."); Mixin.msgOne(teleporteeId, "<i>Teleporting to <h>"+desc+"<i>.");
} }