Skip to content

Commit

Permalink
Fix issues regarding initializing blueprint mirroring buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
dewiniaid committed Mar 2, 2019
1 parent 4d253fb commit 3d2657f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ discussion page, and messages posted there will likely be ignored.**

## Changelog

### 0.3.2 (2019-03-02)
* Fix issues (including a possible crash) involving setting up the blueprint mirroring buttons in a new save.

### 0.3.1 (2019-02-26)
* Fix default keybinds for mirroring
* Add blueprint nudging. SHIFT + arrow-on-numpad will 'nudge' a blueprint 1 tile in the selected direction. (Blueprints with rails will be nudged 2 tiles.)
Expand Down
10 changes: 9 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---------------------------------------------------------------------------------------------------
Version: 0.3.2
Date: 02. 03. 2019
Bugfixes:
- Fix blueprint mirroring buttons not appearing when enabled in a new save until the mod configuration changed.
- Fix crash involving blueprint mirroring buttons in a new save when they were disabled.

---------------------------------------------------------------------------------------------------
Version: 0.3.1
Date: 26. 02. 2019
Changes:
- Fix default keybinds for mirroring
- Add blueprint nudging. SHIFT + arrow-on-numpad will 'nudge' a blueprint 1 tile in the selected direction.
(Blueprints with rails will be nudged 2 tiles.)
Bugfixes:
- Fix default keybinds for mirroring

---------------------------------------------------------------------------------------------------
Version: 0.3.0
Expand Down
5 changes: 5 additions & 0 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ script.on_event(defines.events.on_player_removed, function(event)
Util.clear_all_items(event.player_index)
global.playerdata[event.player_index] = nil
end)

script.on_event(defines.events.on_player_created, function(event)
Flip.setup_gui(game.players[event.player_index])
end)

2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BlueprintExtensions",
"version": "0.3.1",
"version": "0.3.2",
"title": "Blueprint Extensions",
"author": "Dewin",
"contact": "https://github.com/dewiniaid/BlueprintExtensions",
Expand Down
4 changes: 2 additions & 2 deletions modules/flip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function Flip.setup_gui(player)
}
button.visible = true
elseif not show then
flow.BPEX_Flip_H.destroy()
flow.BPEX_Flip_V.destroy()
if flow.BPEX_Flip_H then flow.BPEX_Flip_H.destroy() end
if flow.BPEX_Flip_V then flow.BPEX_Flip_V.destroy() end
end
--
-- local top = player.gui.top
Expand Down

0 comments on commit 3d2657f

Please sign in to comment.