Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.2.2
Date: 08. 11. 2023
Bugfixes:
- Fix an issue where the game would crash when upgrading a house for the first time.
---------------------------------------------------------------------------------------------------
Version: 0.2.1
Date: 07. 11. 2023
Bugfixes:
Expand Down
6 changes: 4 additions & 2 deletions city.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,10 @@ local function findUpgradableCells(city, limit, upgradeTo)
end

local function clearCell(city, upgradeCell)
if global.tycoon_house_lights[upgradeCell.cell.entity.unit_number] then
global.tycoon_house_lights[upgradeCell.cell.entity.unit_number].destroy()
if global.tycoon_house_lights ~= nil then
if global.tycoon_house_lights[upgradeCell.cell.entity.unit_number] then
global.tycoon_house_lights[upgradeCell.cell.entity.unit_number].destroy()
end
end
upgradeCell.cell.entity.destroy()
-- We need to clear the cell as well, so that the construction has available space
Expand Down
Binary file modified graphics/entity/apple-farm/apple-farm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion prototypes/entities/apple-farm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ data:extend{
priority = "high",
width = 500,
height = 500,
shift = {0, 0},
shift = {0, -0.5},
scale = 1
}
},
Expand Down