Browse Source

Fixed a casing typo checking the player server id.

master
atom0s 4 years ago
parent
commit
50695e75cb
No known key found for this signature in database
GPG Key ID: 37D5FD3494D79AF8
  1. 4
      chatmon.lua

4
chatmon.lua

@ -25,7 +25,7 @@ @@ -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) @@ -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');

Loading…
Cancel
Save