Skip to content

Commit

Permalink
Update to 0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Sep 24, 2022
1 parent 0f53c8b commit b53fa11
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"editorconfig.editorconfig",
"lextudio.restructuredtext",
"koihik.vscode-lua-format",
"mads-hartmann.bash-ide-vscode"
"mads-hartmann.bash-ide-vscode",
"ms-vscode-remote.remote-wsl",
"formulahendry.code-runner",
"gruntfuggly.triggertaskonsave"
]
}
10 changes: 4 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
{
"label": "zip mod",
"type": "shell",
"problemMatcher": [],
"command": "bash",
"args": [".scripts/zip_mod.sh"],
"group": "build",
Expand All @@ -13,12 +12,11 @@
}
},
{
"label": "Handle sounds",
"label": "Luacheck",
"type": "shell",
"problemMatcher": [],
"command": "bash",
"args": [".scripts/handle_sounds.sh"],
"group": "build"
"command": "luacheck",
"args": ["${file}"],
"group": "test"
}
]
}
4 changes: 2 additions & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 0.11.2
Version: 0.11.3
Date: 2022-09-24
Bugfixes:
- Fixed possible crush due to incorrect law deletion (https://mods.factorio.com/mod/m-lawful-evil/discussion/632f0aa787e8c9054a0cfef6)
- Fixed possible crush due to incorrect linked law deletion (https://mods.factorio.com/mod/m-lawful-evil/discussion/632f0aa787e8c9054a0cfef6)
---------------------------------------------------------------------------------------------------
Version: 0.11.1
Date: 2021-12-22
Expand Down
4 changes: 2 additions & 2 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ local function ExecuteLaws(laws, event)
player = game.get_player(player_index) -- TODO: change
end

for i=1, #laws do
for i=#laws, 1, -1 do
local law = laws[i]
-- local clause = law.clauses[1] -- TODO: check

Expand Down Expand Up @@ -1031,7 +1031,7 @@ end

local function CheckVotes()
local laws = global.laws
for i=1, #laws do
for i=#laws, 1, -1 do
law = laws[i]
if not law.passed and not law.linked_law and game.tick >= law.vote_end_tick then
local votes = GetLawVotes(law)
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "m-lawful-evil",
"version": "0.11.2",
"version": "0.11.3",
"factorio_version": "1.1",
"title": "Lawful Evil",
"author": "Luke Perkin",
Expand Down

0 comments on commit b53fa11

Please sign in to comment.