Skip to content

Commit

Permalink
Fix crash with pycodex (pyanodon/pybugreports#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Feb 18, 2024
1 parent dd17e83 commit f78fad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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: 2.1.24
Date: ???
Changes:
- Added pY achivements
- Fix crash with pycodex (https://github.com/pyanodon/pybugreports/issues/398)
---------------------------------------------------------------------------------------------------
Version: 2.1.23
Date: 2024-2-17
Expand Down
2 changes: 1 addition & 1 deletion scripts/wiki/wiki.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function Wiki.open_wiki(player)

player.opened = nil
local pywiki = player.gui.screen.add{type = 'frame', name = 'pywiki', direction = 'vertical', style = 'invisible_frame'}
player.opened = pywiki
if not pywiki.valid then game.print('ERROR: The pY codex failed to open.'); return end
pywiki.style.padding = 24
pywiki.style.horizontally_squashable = true
Expand All @@ -40,7 +41,6 @@ function Wiki.open_wiki(player)
pywiki.style.natural_height = 65535

local main_frame = pywiki.add{type = 'frame', name = 'pywiki', direction = 'vertical'}
player.opened = pywiki

for _, widget in pairs(empty_widgets) do
widget.style.size = 24
Expand Down

0 comments on commit f78fad5

Please sign in to comment.