From e7a090d9fc4d0c269a7ce7d2510c5987ee0f54a5 Mon Sep 17 00:00:00 2001 From: Remco Date: Sat, 26 Sep 2020 17:52:53 +0200 Subject: [PATCH] Fix branch state --- .../habbohotel/items/interactions/InteractionOneWayGate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java index 4977f95c..01257bea 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/InteractionOneWayGate.java @@ -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 onSuccess = new ArrayList(); @@ -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()