From 50695e75cb51d6b178278e2976484c504ced8c45 Mon Sep 17 00:00:00 2001 From: atom0s Date: Sat, 6 Feb 2021 11:55:22 -0800 Subject: [PATCH] Fixed a casing typo checking the player server id. --- chatmon.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatmon.lua b/chatmon.lua index 8307090..0a574af 100644 --- a/chatmon.lua +++ b/chatmon.lua @@ -25,7 +25,7 @@ _addon.author = 'atom0s'; _addon.name = 'Chatmon'; -_addon.version = '3.0.0'; +_addon.version = '3.0.1'; require 'common' @@ -404,7 +404,7 @@ ashita.register_event('incoming_packet', function(id, size, packet) -- Incoming emote.. if (id == 0x5A) then local target = struct.unpack('H', packet, 0x08 + 1); - if (GetPlayerEntity().ServerID == target) then + if (GetPlayerEntity().ServerId == target) then if ((os.time() - chatmon.emote_last_alert) >= alert_delay('emote')) then chatmon.emote_last_alert = os.time(); play_alert_sound('emote');