Skip to content

Commit 3d2657f

Browse files
committed
Fix issues regarding initializing blueprint mirroring buttons.
1 parent 4d253fb commit 3d2657f

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ discussion page, and messages posted there will likely be ignored.**
4343

4444
## Changelog
4545

46+
### 0.3.2 (2019-03-02)
47+
* Fix issues (including a possible crash) involving setting up the blueprint mirroring buttons in a new save.
48+
4649
### 0.3.1 (2019-02-26)
4750
* Fix default keybinds for mirroring
4851
* 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.)

changelog.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
---------------------------------------------------------------------------------------------------
2+
Version: 0.3.2
3+
Date: 02. 03. 2019
4+
Bugfixes:
5+
- Fix blueprint mirroring buttons not appearing when enabled in a new save until the mod configuration changed.
6+
- Fix crash involving blueprint mirroring buttons in a new save when they were disabled.
7+
18
---------------------------------------------------------------------------------------------------
29
Version: 0.3.1
310
Date: 26. 02. 2019
411
Changes:
5-
- Fix default keybinds for mirroring
612
- Add blueprint nudging. SHIFT + arrow-on-numpad will 'nudge' a blueprint 1 tile in the selected direction.
713
(Blueprints with rails will be nudged 2 tiles.)
14+
Bugfixes:
15+
- Fix default keybinds for mirroring
816

917
---------------------------------------------------------------------------------------------------
1018
Version: 0.3.0

control.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ script.on_event(defines.events.on_player_removed, function(event)
2323
Util.clear_all_items(event.player_index)
2424
global.playerdata[event.player_index] = nil
2525
end)
26+
27+
script.on_event(defines.events.on_player_created, function(event)
28+
Flip.setup_gui(game.players[event.player_index])
29+
end)
30+

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BlueprintExtensions",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"title": "Blueprint Extensions",
55
"author": "Dewin",
66
"contact": "https://github.com/dewiniaid/BlueprintExtensions",

modules/flip.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ function Flip.setup_gui(player)
7070
}
7171
button.visible = true
7272
elseif not show then
73-
flow.BPEX_Flip_H.destroy()
74-
flow.BPEX_Flip_V.destroy()
73+
if flow.BPEX_Flip_H then flow.BPEX_Flip_H.destroy() end
74+
if flow.BPEX_Flip_V then flow.BPEX_Flip_V.destroy() end
7575
end
7676
--
7777
-- local top = player.gui.top

0 commit comments

Comments
 (0)