Skip to content

Commit

Permalink
Set the VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
narc0tiq committed Dec 18, 2024
1 parent 3cd2d35 commit bbc2556
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 1.0.1
Bugfixes:
- fix crash when renaming a site without a name tag (e.g., new site)
Changes:
- create sites with an empty string as a name tag instead of nil
---------------------------------------------------------------------------------------------------
Version: 1.0.0
Date: 2024-12-18
Bugfixes:
Expand Down
2 changes: 1 addition & 1 deletion resmon/click.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function handlers.YARM_rename_site(event)
caption = { "YARM-site-rename-title", resmon.locale.site_display_name(site, format) },
direction = "horizontal" }

root.add { type = "textfield", name = "new_name" }.text = site.name_tag
root.add { type = "textfield", name = "new_name" }.text = site.name_tag or ""
root.add { type = "button", name = "YARM_rename_cancel", caption = { "YARM-site-rename-cancel" }, style = "back_button" }
root.add { type = "button", name = "YARM_rename_confirm", caption = { "YARM-site-rename-confirm" }, style = "confirm_button" }

Expand Down
2 changes: 1 addition & 1 deletion resmon/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function types_module.new_site(player, entity)
is_summary = false, -- true for summary sites generated by resmon.sites.generate_summaries
site_count = 0, -- nonzero only for summaries (see above), where it contains the number of sites being summarized
index = 0,
name_tag = nil, -- Player-set name tag added to the site display name
name_tag = "", -- Player-set name tag added to the site display name
added_at = game.tick,
surface = entity.surface, ---@type LuaSurface
force = player.force,
Expand Down

0 comments on commit bbc2556

Please sign in to comment.