Skip to content

Commit

Permalink
fix luacheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
a-blob committed Nov 28, 2023
1 parent 06b47f6 commit 1be250c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/ctf/ctf_map/ctf_traps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ minetest.register_node("ctf_map:reinforced_cobble", {
local digger_team = ctf_teams.get(digger)
if placer_team ~= digger_team then
minetest.set_node(pos, {name = "ctf_map:reinforced_cobble_hardened"})
local meta = minetest.get_meta(pos)
meta = minetest.get_meta(pos)
meta:set_string("placer_team", placer_team)
end
end,
Expand Down Expand Up @@ -211,7 +211,7 @@ minetest.register_node("ctf_map:reinforced_cobble_hardened", {
local digger_team = ctf_teams.get(digger)
if placer_team == digger_team then
minetest.set_node(pos, {name = "ctf_map:reinforced_cobble"})
local meta = minetest.get_meta(pos)
meta = minetest.get_meta(pos)
meta:set_string("placer_team", placer_team)
end
end,
Expand Down

0 comments on commit 1be250c

Please sign in to comment.