fixed wired trigger: User step on furni when on roller

This commit is contained in:
skeletor 2020-01-31 11:52:37 -05:00 committed by Alejandro
parent d9bebe2c9e
commit b89e6726b1
3 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import java.util.List;
public class InteractionRoller extends HabboItem { public class InteractionRoller extends HabboItem {
public static boolean NO_RULES = false; public static boolean NO_RULES = false;
public static int DELAY = 400;
public InteractionRoller(ResultSet set, Item baseItem) throws SQLException { public InteractionRoller(ResultSet set, Item baseItem) throws SQLException {
super(set, baseItem); super(set, baseItem);

View File

@ -1459,7 +1459,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
} }
} }
} }
}, 500); }, this.getRollerSpeed() == 0 ? 250 : InteractionRoller.DELAY);
} }
} }

View File

@ -1,6 +1,7 @@
package com.eu.habbo.messages.outgoing.rooms.users; package com.eu.habbo.messages.outgoing.rooms.users;
import com.eu.habbo.Emulator; import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.items.interactions.InteractionRoller;
import com.eu.habbo.habbohotel.rooms.Room; import com.eu.habbo.habbohotel.rooms.Room;
import com.eu.habbo.habbohotel.rooms.RoomTile; import com.eu.habbo.habbohotel.rooms.RoomTile;
import com.eu.habbo.habbohotel.rooms.RoomUnit; import com.eu.habbo.habbohotel.rooms.RoomUnit;
@ -65,7 +66,7 @@ public class RoomUnitOnRollerComposer extends MessageComposer {
RoomUnitOnRollerComposer.this.roomUnit.setZ(RoomUnitOnRollerComposer.this.newLocation.getStackHeight()); RoomUnitOnRollerComposer.this.roomUnit.setZ(RoomUnitOnRollerComposer.this.newLocation.getStackHeight());
RoomUnitOnRollerComposer.this.roomUnit.sitUpdate = true; RoomUnitOnRollerComposer.this.roomUnit.sitUpdate = true;
} }
}, this.room.getRollerSpeed() == 0 ? 250 : 400); }, this.room.getRollerSpeed() == 0 ? 250 : InteractionRoller.DELAY);
} else { } else {
this.roomUnit.setLocation(this.newLocation); this.roomUnit.setLocation(this.newLocation);
this.roomUnit.setZ(this.newZ); this.roomUnit.setZ(this.newZ);