Merge branch 'improvement/fix-bot-sending-data-to-null-habbo' into 'dev'

Fix for sending data to a user that is null #1807

See merge request morningstar/Arcturus-Community!95
This commit is contained in:
ArpyAge 2024-10-17 20:38:58 +00:00
commit 4ca41a9fd7

View File

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