Merge branch 'fix-sending-message-to-null-user' into 'ms4/dev'

Fix for function sending data to a user that has left #1807

See merge request morningstar/Arcturus-Community!46
This commit is contained in:
John 2023-01-20 00:16:28 +00:00
commit 8a81449978

View File

@ -3318,6 +3318,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
}
for (Habbo habbo : this.getHabbos()) {
if (habbo == null) { return ; }
if (!habbo.getHabboStats().isIgnoreBots())
habbo.getClient().sendResponse(message);
}