Let PacketCreator create Packet - initial test

This commit is contained in:
P0nk
2021-08-20 16:11:07 +02:00
parent d8b0929975
commit b5cd6887ae
4 changed files with 26 additions and 20 deletions

View File

@@ -3314,10 +3314,10 @@ public class MapleMap {
}
// not really costly to keep generating imo
public void sendNightEffect(MapleCharacter mc) {
public void sendNightEffect(MapleCharacter chr) {
for (Entry<Integer, Integer> types : backgroundTypes.entrySet()) {
if (types.getValue() >= 3) { // 3 is a special number
mc.announce(PacketCreator.changeBackgroundEffect(true, types.getKey(), 0));
chr.sendPacket(PacketCreator.changeBackgroundEffect(true, types.getKey(), 0));
}
}
}