Fix ravagers building doors in a different way

This commit is contained in:
Player Name 2026-07-01 07:41:08 +02:00
parent 38ec74d178
commit 07c4468019

View file

@ -31,7 +31,6 @@ public final class PestControlSession {
*/
public static final int[] INVALID_OBJECT_IDS = {14230, 14231, 14232, // Barricades
14245, 14246, 14247, 14248, // Gates
25636 // Strange phantom object that shares a tile with a barricade
};
/**
@ -275,7 +274,9 @@ public final class PestControlSession {
for (Scenery object : objectList) {
for (Point point : OBJECT_OFFSETS) {
if (object.getLocation().getLocalX() == point.getX() && object.getLocation().getLocalY() == point.getY()) {
barricades.add(object);
if (object.getId() != 25636) { //strange phantom object that shares a tile with a barricade
barricades.add(object);
}
}
}
}