Fixed pet commands not pushing the RoomUserStatusComposer after setting the gesture.

This commit is contained in:
Harmonic 2022-04-07 14:37:34 -07:00
parent 6a599c32c7
commit 42198c46bd

View File

@ -3,6 +3,7 @@ package com.eu.habbo.habbohotel.pets;
import com.eu.habbo.Emulator; import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.rooms.RoomUnitStatus; import com.eu.habbo.habbohotel.rooms.RoomUnitStatus;
import com.eu.habbo.habbohotel.users.Habbo; import com.eu.habbo.habbohotel.users.Habbo;
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserStatusComposer;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@ -65,7 +66,7 @@ public class PetCommand implements Comparable<PetCommand> {
} }
pet.getRoomUnit().setStatus(RoomUnitStatus.GESTURE, this.action.gestureToSet); pet.getRoomUnit().setStatus(RoomUnitStatus.GESTURE, this.action.gestureToSet);
pet.getRoom().sendComposer(new RoomUserStatusComposer(pet.getRoomUnit()).compose());
pet.addEnergy(-this.energyCost); pet.addEnergy(-this.energyCost);
pet.addHappyness(-this.happynessCost); pet.addHappyness(-this.happynessCost);
pet.addExperience(this.xp); pet.addExperience(this.xp);