mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fixed pet commands not pushing the RoomUserStatusComposer after setting the gesture.
This commit is contained in:
parent
6a599c32c7
commit
42198c46bd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user