Skip to content

Commit

Permalink
Fixed a crash when clicking on the "Unavaliable" button in the fish T…
Browse files Browse the repository at this point in the history
…URD while dousing pumps is selected.
  • Loading branch information
notnotmelon committed Nov 18, 2024
1 parent 8a07ff0 commit ef384bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Version: 3.0.24
Date: ?
Changes:
- Fixed digosaurs pywiki page missing [item=dried-meat] → 1 ore info. Resolves https://github.com/pyanodon/pybugreports/issues/725
- Fixed a crash when clicking on the "Unavaliable" button in the fish TURD while dousing pumps is selected.
---------------------------------------------------------------------------------------------------
Version: 3.0.23
Date: 2024-11-17
Expand Down
2 changes: 2 additions & 0 deletions scripts/turd/turd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ gui_events[defines.events.on_gui_click]["py_turd_confirm_button"] = function(eve
return
end

if element.caption[1] == "turd.unavailable" then return end

local turd_bonuses = storage.turd_bonuses[force_index] or {}
storage.turd_bonuses[force_index] = turd_bonuses
local selection = turd_bonuses[master_tech_name] or NOT_SELECTED
Expand Down

0 comments on commit ef384bc

Please sign in to comment.