Skip to content

Commit

Permalink
[#7] Fix reading the field area in ha and not the land area
Browse files Browse the repository at this point in the history
  • Loading branch information
Peppie84 committed Dec 29, 2024
1 parent 76b9148 commit 7ca5008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FS25_BeesRevamp/src/beehivesystemextended.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function BeehiveSystemExtended:getBeehiveInfluenceFactorAt(wx, wz)
return 0
end

local totalFieldArea = farmLand.totalFieldArea or farmLand.areaInHa
local totalFieldArea = (farmLand.field ~= nil and farmLand.field.areaHa) or farmLand.areaInHa or farmLand.totalFieldArea
if totalFieldArea == nil then
return 0
end
Expand Down

0 comments on commit 7ca5008

Please sign in to comment.