Skip to content

Commit

Permalink
check for already converted beacons in lbm
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed May 20, 2020
1 parent d933780 commit f37fabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions register.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ minetest.register_lbm({
run_at_every_load = false,
action = function(pos, node)
local meta = minetest.get_meta(pos)
if meta:get_string("effect") ~= "" then
return -- already converted
end
beacon.set_default_meta(pos)
meta:set_string("beam_dir", "+Y")
meta:set_string("active", "true")
Expand Down

0 comments on commit f37fabf

Please sign in to comment.