From b050c768d82ba9f05edb4628bb6a697ca0b184ea Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Fri, 1 Jan 2016 17:12:15 +0100 Subject: [PATCH] Empty teleportation desc means silence as well. --- .../massivecraft/massivecore/mixin/TeleportMixinDefault.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/massivecore/mixin/TeleportMixinDefault.java b/src/com/massivecraft/massivecore/mixin/TeleportMixinDefault.java index 444641dd..2d83ec84 100644 --- a/src/com/massivecraft/massivecore/mixin/TeleportMixinDefault.java +++ b/src/com/massivecraft/massivecore/mixin/TeleportMixinDefault.java @@ -91,7 +91,7 @@ public class TeleportMixinDefault extends TeleportMixinAbstract if (delaySeconds > 0) { // With delay - if (desc != null) + if (desc != null && ! desc.isEmpty()) { Mixin.msgOne(teleporteeId, "Teleporting to "+desc+" in "+delaySeconds+"s unless you move."); } @@ -113,7 +113,7 @@ public class TeleportMixinDefault extends TeleportMixinAbstract destination = event.getDestination(); desc = destination.getDesc(teleporteeId); - if (desc != null) + if (desc != null && ! desc.isEmpty()) { Mixin.msgOne(teleporteeId, "Teleporting to "+desc+"."); }