From bb91e8726ff9aea85f07e65074b3ac26bf2b187f Mon Sep 17 00:00:00 2001 From: armored-dragon Date: Sat, 16 Nov 2024 18:53:34 -0600 Subject: [PATCH] Renamed function. --- scripts/communityScripts/armored-chat/armored_chat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.js b/scripts/communityScripts/armored-chat/armored_chat.js index 7fca508230..42a3aa04ff 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.js +++ b/scripts/communityScripts/armored-chat/armored_chat.js @@ -112,7 +112,7 @@ if (!channels.includes(message.channel)) return; // If message is local, and if player is too far away from location, do nothing. - if (message.channel == "local" && isCloseEnough(message.position)) return; + if (message.channel == "local" && isTooFar(message.position)) return; // Format the timestamp message.timeString = timeArray[0]; @@ -147,7 +147,7 @@ Settings.setValue("ArmoredChat-Messages", messageHistory); // Check to see if the message is close enough to the user - function isCloseEnough(messagePosition) { + function isTooFar(messagePosition) { return Vec3.distance(MyAvatar.position, messagePosition) > maxLocalDistance; } }