Fix branch state

This commit is contained in:
Remco 2020-09-26 17:52:53 +02:00
parent 246bbc80a8
commit e7a090d9fc

View File

@ -81,6 +81,7 @@ public class InteractionOneWayGate extends HabboItem {
if (unit == null)
return;
if (tileInfront.x == unit.getX() && tileInfront.y == unit.getY()) {
if (!currentLocation.hasUnits()) {
List<Runnable> onSuccess = new ArrayList<Runnable>();
@ -110,7 +111,6 @@ public class InteractionOneWayGate extends HabboItem {
unit.setGoalLocation(currentLocation);
Emulator.getThreading().run(new RoomUnitWalkToLocation(unit, currentLocation, room, onSuccess, onFail));
room.sendComposer(new ItemIntStateComposer(this.getId(), 1).compose());
super.onWalkOn(unit, room, objects);
/*
room.scheduledTasks.add(new Runnable()