mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Remove message sent when an npc is registered/unregistered.
This commit is contained in:
@@ -310,8 +310,6 @@ public final class World {
|
||||
boolean success = npcRepository.add(npc);
|
||||
|
||||
if (success) {
|
||||
logger.info("Registered npc: " + npc + " [count=" + npcRepository.size() + "]");
|
||||
|
||||
Sector sector = sectorRepository.get(SectorCoordinates.fromPosition(npc.getPosition()));
|
||||
sector.addEntity(npc);
|
||||
} else {
|
||||
@@ -362,8 +360,6 @@ public final class World {
|
||||
*/
|
||||
public void unregister(final Npc npc) {
|
||||
if (npcRepository.remove(npc)) {
|
||||
logger.info("Unregistered npc: " + npc + " [count=" + npcRepository.size() + "]");
|
||||
|
||||
Sector sector = sectorRepository.get(SectorCoordinates.fromPosition(npc.getPosition()));
|
||||
sector.removeEntity(npc);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user