Fixed players getting kicked to their POH every time they relog

This commit is contained in:
Player Name
2026-04-20 14:30:35 +00:00
committed by Ryan
parent 15197bae85
commit 5d37bb20b0
@@ -96,12 +96,12 @@ public final class HouseZone extends MapZone {
Player p = (Player) e; Player p = (Player) e;
// if the player is moving between the dungeon and main house, don't trigger the leave sequence // if the player is moving between the dungeon and main house, don't trigger the leave sequence
if (!logout) { if (house.getDungeonRegion() != null && !logout) {
// current loc // current loc
Location dest = p.getProperties().getTeleportLocation(); Location dest = p.getProperties().getTeleportLocation();
int currentRegionId = p.getLocation().getRegionId(); int currentRegionId = p.getLocation().getRegionId();
int houseId = house.getHouseRegion().getId(); int houseId = house.getHouseRegion().getId();
int dungeonId = (house.getDungeonRegion() != null) ? house.getDungeonRegion().getId() : -1; int dungeonId = house.getDungeonRegion().getId();
// check if still in house // check if still in house
boolean currentlyInHouse = (currentRegionId == houseId || currentRegionId == dungeonId); boolean currentlyInHouse = (currentRegionId == houseId || currentRegionId == dungeonId);