mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix rotating monster plants
This commit is contained in:
parent
616b25f159
commit
1b97707bc7
@ -3,6 +3,7 @@ package com.eu.habbo.messages.incoming.rooms.pets;
|
||||
import com.eu.habbo.habbohotel.pets.Pet;
|
||||
import com.eu.habbo.habbohotel.rooms.Room;
|
||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||
import com.eu.habbo.habbohotel.rooms.RoomUserRotation;
|
||||
import com.eu.habbo.messages.incoming.MessageHandler;
|
||||
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserStatusComposer;
|
||||
|
||||
@ -23,7 +24,8 @@ public class MovePetEvent extends MessageHandler {
|
||||
if (tile != null) {
|
||||
pet.getRoomUnit().setLocation(tile);
|
||||
pet.getRoomUnit().setPreviousLocation(tile);
|
||||
pet.getRoomUnit().setZ(this.packet.readInt() + tile.z);
|
||||
pet.getRoomUnit().setZ(tile.z);
|
||||
pet.getRoomUnit().setRotation(RoomUserRotation.fromValue(this.packet.readInt()));
|
||||
pet.getRoomUnit().setPreviousLocationZ(pet.getRoomUnit().getZ());
|
||||
room.sendComposer(new RoomUserStatusComposer(pet.getRoomUnit()).compose());
|
||||
pet.needsUpdate = true;
|
||||
|
Loading…
Reference in New Issue
Block a user