Skip to content

Commit

Permalink
fix backend error
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Feb 17, 2025
1 parent e1a1310 commit 92b3856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions housing/utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,10 @@ function M.allowBuilding(user, alternatePosition)

local deed = M.getPropertyDeed(propertyName)

if not deed then
return false
end

if deed:getData("demolishmentInProgress") == "true" then
user:inform("Du kannst nicht auf einem Grundstück bauen, wo alles zum Abriss vorgesehen ist.", "You can not build at an estate that is being demolished.")
return false, true
Expand Down

0 comments on commit 92b3856

Please sign in to comment.