Fixed issue with PacketManager

This commit is contained in:
Harmonic 2022-04-21 16:47:04 -07:00
parent 754cb0c155
commit ee45a5ce99
2 changed files with 2 additions and 2 deletions

View File

@ -559,7 +559,7 @@ public class PacketManager {
}
void registerPets() throws Exception {
this.registerHandler(Incoming.UpdateRoomThumbnailEvent, RequestPetInformationEvent.class);
this.registerHandler(Incoming.UpdateRoomThumbnailEvent, GetPetInfoEvent.class);
this.registerHandler(Incoming.RemovePetFromFlatEvent, PetPickupEvent.class);
this.registerHandler(Incoming.RespectPetEvent, ScratchPetEvent.class);
this.registerHandler(Incoming.GetPetCommandsEvent, RequestPetTrainingPanelEvent.class);

View File

@ -5,7 +5,7 @@ import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.messages.incoming.MessageHandler;
import com.eu.habbo.messages.outgoing.rooms.pets.PetInfoMessageComposer;
public class RequestPetInformationEvent extends MessageHandler {
public class GetPetInfoEvent extends MessageHandler {
@Override
public void handle() throws Exception {
int petId = this.packet.readInt();