mover: fix palette_index, editorconfig: no newline, add gitattributes
This commit is contained in:
мтест 2022-11-08 18:22:13 +01:00 committed by waxtatect
parent 615ba06213
commit 1d492fa105
3 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ root = true
charset = utf-8
indent_size = 4
indent_style = tab
insert_final_newline = false
trim_trailing_whitespace = true
[{locale/template,locale/*.tr}]

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
.* export-ignore

View File

@ -912,7 +912,7 @@ minetest.register_node("basic_machines:mover", {
local palette_index = tonumber(inv_stack:get_meta():get("palette_index"))
if palette_index then
stack:get_meta():set_int("palette_index", palette_index)
match_meta = true; node1.param1, node1.param2 = nil, palette_index + 2
match_meta = true; node1.param1, node1.param2 = nil, palette_index
end
end