mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 00:40:52 +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 != 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 != 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)) {
|
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) {
|
} else if (item instanceof InteractionGuildGate || item instanceof InteractionHabboClubGate) {
|
||||||
this.setRotation(oldRotation);
|
this.setRotation(oldRotation);
|
||||||
this.tilesWalked--;
|
this.tilesWalked--;
|
||||||
@ -306,7 +306,7 @@ public class RoomUnit {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
item.onWalk(this, room, new Object[]{this.getCurrentLocation(), next});
|
item.onWalk(this, room, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
zHeight += item.getZ();
|
zHeight += item.getZ();
|
||||||
|
Loading…
Reference in New Issue
Block a user