From 659e0bf98058b4f4c19c7be3f5dd5902f5527981 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Mon, 22 Feb 2021 16:20:26 +1300 Subject: [PATCH] fix: formatting on message when a code lock is placed --- src/AutoCode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoCode.cs b/src/AutoCode.cs index a64612d..6d05a40 100644 --- a/src/AutoCode.cs +++ b/src/AutoCode.cs @@ -129,8 +129,8 @@ void OnEntitySpawned(CodeLock codeLock) codeLock.hasGuestCode ? "CodeAutoLockedWithGuest" : "CodeAutoLocked", this, player.UserIDString), - Utils.ShouldHideCode(player, settings) ? HiddenCode : codeLock.code, - Utils.ShouldHideCode(player, settings) ? HiddenCode : codeLock.guestCode + Formatter.Value(Utils.ShouldHideCode(player, settings) ? HiddenCode : codeLock.code), + Formatter.Value(Utils.ShouldHideCode(player, settings) ? HiddenCode : codeLock.guestCode) ) ); }