Skip to content

Commit

Permalink
Merge pull request #2001 from QuentinGruber/fixShackPlacementBumjick
Browse files Browse the repository at this point in the history
Fix isNoBuildInPOIs boolean algebra
  • Loading branch information
QuentinGruber authored Mar 8, 2024
2 parents 5b81187 + fd67a9f commit 8acdde2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/servers/ZoneServer2016/managers/constructionmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export class ConstructionManager {
): boolean {
if (client.isDebugMode) return false;
if (this.overridePlacementItems.includes(itemDefinitionId)) return false;

let useRange = true;
let isInPoi = false;
let isShackInRange = false;
Expand Down Expand Up @@ -438,8 +439,8 @@ export class ConstructionManager {
return true;
}

if (server.isNoBuildInPois) return false;
if (
server.isNoBuildInPois &&
this.detectPOIPlacement(
itemDefinitionId,
position,
Expand Down

0 comments on commit 8acdde2

Please sign in to comment.