From 70d20ff2dd861cdfbe46c891a7a807ec7d1f6540 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Thu, 27 Feb 2020 20:24:37 +0200 Subject: [PATCH] Remove onWalk and onWalkOff object data --- src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java index 7eb7278b..7b01af64 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/RoomUnit.java @@ -291,7 +291,7 @@ public class RoomUnit { if (item != null) { if (item != habboItem || !RoomLayout.pointInSquare(item.getX(), item.getY(), item.getX() + item.getBaseItem().getWidth() - 1, item.getY() + item.getBaseItem().getLength() - 1, this.getX(), this.getY())) { if (item.canWalkOn(this, room, null)) { - item.onWalkOn(this, room, new Object[]{this.getCurrentLocation(), next}); + item.onWalkOn(this, room, null); } else if (item instanceof InteractionGuildGate || item instanceof InteractionHabboClubGate) { this.setRotation(oldRotation); this.tilesWalked--; @@ -306,7 +306,7 @@ public class RoomUnit { return false; } } else { - item.onWalk(this, room, new Object[]{this.getCurrentLocation(), next}); + item.onWalk(this, room, null); } zHeight += item.getZ();