Skip to content

Commit

Permalink
Lua uses false as the boolean value (#339)
Browse files Browse the repository at this point in the history
For my mod I have a [LUA linter/formatter (Language Server
actually)](https://luals.github.io) active in my IDE and it finds these
issues (and is pestering me about it all the time). So I fixed them.

Note that Lua uses `false` as the boolean value, not `False`.
  • Loading branch information
shpaass authored Oct 31, 2024
2 parents b57cbfa + bb19695 commit 27a5b29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ data = {
max_temperature = 1000,
heat_capacity = "0.2kJ",
gas_temperature = 15,
auto_barrel = False,
auto_barrel = false,
icon = "",
},
},
Expand Down
6 changes: 3 additions & 3 deletions Yafc.Model.Tests/Model/SelectableVariantsTests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data = {
max_temperature = 1000,
heat_capacity = "0.2kJ",
gas_temperature = 15,
auto_barrel = False,
auto_barrel = false,
icon = "",
}
},
Expand Down Expand Up @@ -77,7 +77,7 @@ data = {
name = "steam-turbine",
fluid_usage_per_tick = 1,
maximum_temperature = 500,
burns_fluid = False,
burns_fluid = false,
fluid_box = {
filter = "steam",
},
Expand All @@ -93,7 +93,7 @@ defines.prototypes = {
boiler = 0,
generator = 0,
},
item = { },
item = {},
fluid = {
fluid = 0,
},
Expand Down

0 comments on commit 27a5b29

Please sign in to comment.