mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 09:50:51 +01:00
Remove onWalk and onWalkOff object data
This commit is contained in:
parent
518e12c6ad
commit
70d20ff2dd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user