mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-06-30 12:45:34 +02:00
Added roller glitch. See Issue #47
This commit is contained in:
parent
793d48961d
commit
60536d9fdf
|
@ -1736,6 +1736,11 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
|||
HabboItem item = room.getTopItemAt(tileInFront.x, tileInFront.y);
|
||||
|
||||
if (item != null && itemsNewTile.contains(item))
|
||||
{
|
||||
Emulator.getThreading().run(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (unit.getGoal() == rollerTile)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -1746,6 +1751,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
|||
}
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
}
|
||||
|
||||
if(unit.hasStatus(RoomUnitStatus.SIT)) {
|
||||
unit.sitUpdate = true;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.eu.habbo.messages.outgoing.rooms.users;
|
||||
|
||||
import com.eu.habbo.Emulator;
|
||||
import com.eu.habbo.habbohotel.rooms.Room;
|
||||
import com.eu.habbo.habbohotel.rooms.RoomTile;
|
||||
import com.eu.habbo.habbohotel.rooms.RoomUnit;
|
||||
|
@ -62,6 +63,9 @@ public class RoomUnitOnRollerComposer extends MessageComposer
|
|||
{
|
||||
RoomTile rollerTile = room.getLayout().getTile(this.roller.getX(), this.roller.getY());
|
||||
|
||||
Emulator.getThreading().run(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (RoomUnitOnRollerComposer.this.oldLocation == rollerTile && RoomUnitOnRollerComposer.this.roomUnit.getGoal() == rollerTile)
|
||||
{
|
||||
RoomUnitOnRollerComposer.this.roomUnit.setLocation(room.getLayout().getTile(newLocation.x, newLocation.y));
|
||||
|
@ -70,6 +74,8 @@ public class RoomUnitOnRollerComposer extends MessageComposer
|
|||
RoomUnitOnRollerComposer.this.roomUnit.sitUpdate = true;
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.roomUnit.setLocation(this.newLocation);
|
||||
|
|
Loading…
Reference in New Issue
Block a user