forked from mtcontrib/arrow_signs
Use LBM instead of ABM to replace old nodes
This commit is contained in:
parent
53b67c16a7
commit
9b5250c1eb
5
init.lua
5
init.lua
@ -197,12 +197,11 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
--Redefinition
|
||||
minetest.register_abm({
|
||||
minetest.register_lbm({
|
||||
name = "arrow_signs:replace_old",
|
||||
nodenames = {"arrow_signs:wall_right", "arrow_signs:wall_left", "arrow_signs:wall_up", "arrow_signs:wall_down",
|
||||
"more_signs:wall_right","more_signs:wall_left","more_signs:wall_up" ,"more_signs:wall_down"
|
||||
},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
local convert_facedir={
|
||||
["arrow_signs:wall_right"] = {6,4,5,11,16,14},
|
||||
|
@ -85,10 +85,9 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
--Redefinition
|
||||
minetest.register_abm({
|
||||
minetest.register_lbm({
|
||||
name = "arrow_signs:replace_old_shared_locked",
|
||||
nodenames = {"arrow_signs:shared_locked_right", "'arrow_signs:shared_locked_left", "arrow_signs:shared_locked_up", "arrow_signs:shared_locked_down"},
|
||||
interval = 1,
|
||||
chance = 1,
|
||||
action = function(pos, node)
|
||||
local convert_facedir={
|
||||
["arrow_signs:shared_locked_right"]={6,4,5,11,16,14},
|
||||
|
Loading…
Reference in New Issue
Block a user