From 8967d5dfd47efd547d4647fb2847570bbc91597d Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Wed, 12 Jun 2019 00:53:16 +0100 Subject: [PATCH] Minor Main.java modifications. Credits to Jynx for noticing. --- src/main/java/org/krews/apollyon/Main.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/krews/apollyon/Main.java b/src/main/java/org/krews/apollyon/Main.java index bd9473a..747100c 100644 --- a/src/main/java/org/krews/apollyon/Main.java +++ b/src/main/java/org/krews/apollyon/Main.java @@ -48,10 +48,10 @@ public class Main extends HabboPlugin implements EventListener { incoming.remove(Incoming.CameraPublishToWebEvent); incoming.remove(Incoming.CameraPurchaseEvent); incoming.remove(Incoming.CameraRoomThumbnailEvent); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); + packetManager.registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); + packetManager.registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); + packetManager.registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); + packetManager.registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); } @@ -75,10 +75,10 @@ public class Main extends HabboPlugin implements EventListener { incoming.remove(Incoming.CameraRoomThumbnailEvent); // Adds the PNGCamera Packet Handlers - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); - Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); + packetManager.registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); + packetManager.registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); + packetManager.registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); + packetManager.registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); // Send the message to the Emulator that PNGCamera has started. Emulator.getLogging().logStart("[Apollyon] Apollyon Preview 1 has hijacked the Arcturus Camera packets, and is ready to use!!");