mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix player height not updating on item moved - Closes #805
This commit is contained in:
parent
0d9d4eda61
commit
46eaddc00f
@ -87,7 +87,7 @@ public class InteractionMultiHeight extends HabboItem {
|
||||
|
||||
THashSet<RoomUnit> updatedUnits = new THashSet<>();
|
||||
for (RoomUnit unit : unitsOnItem) {
|
||||
if (unit.hasStatus(RoomUnitStatus.MOVE))
|
||||
if (unit.hasStatus(RoomUnitStatus.MOVE) && unit.getGoal() != tile)
|
||||
continue;
|
||||
|
||||
this.getBaseItem().getMultiHeights();
|
||||
|
@ -782,13 +782,14 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
}
|
||||
|
||||
if(habbo.getRoomUnit().getCurrentLocation().is(x, y) && (oldZ != z || updated || oldRotation != habbo.getRoomUnit().getBodyRotation())) {
|
||||
roomUnits.add(habbo.getRoomUnit());
|
||||
habbo.getRoomUnit().statusUpdate(true);
|
||||
//roomUnits.add(habbo.getRoomUnit());
|
||||
}
|
||||
}
|
||||
|
||||
if (!roomUnits.isEmpty()) {
|
||||
/*if (!roomUnits.isEmpty()) {
|
||||
this.sendComposer(new RoomUserStatusComposer(roomUnits, true).compose());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
public void updateBotsAt(short x, short y) {
|
||||
@ -4684,9 +4685,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
t.x,
|
||||
t.y,
|
||||
this.getHabbosAt(t.x, t.y)
|
||||
.stream()
|
||||
.filter(h -> !h.getRoomUnit().hasStatus(RoomUnitStatus.MOVE))
|
||||
.collect(Collectors.toCollection(THashSet::new))
|
||||
/*.stream()
|
||||
.filter(h -> !h.getRoomUnit().hasStatus(RoomUnitStatus.MOVE) || h.getRoomUnit().getGoal() == t)
|
||||
.collect(Collectors.toCollection(THashSet::new))*/
|
||||
);
|
||||
this.updateBotsAt(t.x, t.y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user