Minor Main.java modifications. Credits to Jynx for noticing.

This commit is contained in:
KrewsOrg 2019-06-12 00:53:16 +01:00
parent 64811f74f2
commit 8967d5dfd4

View File

@ -48,10 +48,10 @@ public class Main extends HabboPlugin implements EventListener {
incoming.remove(Incoming.CameraPublishToWebEvent); incoming.remove(Incoming.CameraPublishToWebEvent);
incoming.remove(Incoming.CameraPurchaseEvent); incoming.remove(Incoming.CameraPurchaseEvent);
incoming.remove(Incoming.CameraRoomThumbnailEvent); incoming.remove(Incoming.CameraRoomThumbnailEvent);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); packetManager.registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); packetManager.registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); packetManager.registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); packetManager.registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class);
} }
@ -75,10 +75,10 @@ public class Main extends HabboPlugin implements EventListener {
incoming.remove(Incoming.CameraRoomThumbnailEvent); incoming.remove(Incoming.CameraRoomThumbnailEvent);
// Adds the PNGCamera Packet Handlers // Adds the PNGCamera Packet Handlers
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class); packetManager.registerHandler(Incoming.CameraRoomPictureEvent, CameraRoomPictureEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class); packetManager.registerHandler(Incoming.CameraPublishToWebEvent, CameraPublishToWebEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class); packetManager.registerHandler(Incoming.CameraPurchaseEvent, CameraPurchaseEvent.class);
Emulator.getGameServer().getPacketManager().registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class); packetManager.registerHandler(Incoming.CameraRoomThumbnailEvent, CameraRoomThumbnailEvent.class);
// Send the message to the Emulator that PNGCamera has started. // 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!!"); Emulator.getLogging().logStart("[Apollyon] Apollyon Preview 1 has hijacked the Arcturus Camera packets, and is ready to use!!");