Fix tr. mirror not dropping correct item
parent
2bc668e241
commit
027a8357c3
|
@ -233,17 +233,17 @@ local register_element = function(subname, def, options)
|
|||
def_core.groups[groupname] = 1
|
||||
def_core.can_dig = element_can_dig
|
||||
def_core.on_place = element_on_place
|
||||
|
||||
minetest.register_node("lzr_laser:"..subname, def_core)
|
||||
|
||||
local def_core_on
|
||||
|
||||
if options.inactive then
|
||||
if options.inactive ~= nil then
|
||||
def_core._lzr_inactive = options.inactive
|
||||
if not options.keep_state_on_take then
|
||||
def_core.drop = options.inactive
|
||||
end
|
||||
elseif options.activate ~= false then
|
||||
end
|
||||
|
||||
minetest.register_node("lzr_laser:"..subname, def_core)
|
||||
|
||||
local def_core_on
|
||||
if options.activate ~= false then
|
||||
def_core_on = table.copy(def_core)
|
||||
if options.not_walkable_if_off then
|
||||
def_core_on.walkable = true
|
||||
|
@ -272,14 +272,16 @@ local register_element = function(subname, def, options)
|
|||
def_takable.groups.takable = 1
|
||||
def_takable._lzr_untakable = "lzr_laser:"..subname
|
||||
def_takable.description = def.description
|
||||
minetest.register_node("lzr_laser:"..subname.."_takable", def_takable)
|
||||
|
||||
if options.inactive then
|
||||
if options.inactive ~= nil then
|
||||
def_takable._lzr_inactive = options.inactive.."_takable"
|
||||
if not options.keep_state_on_take then
|
||||
def_takable.drop = options.inactive.."_takable"
|
||||
end
|
||||
elseif options.activate ~= false then
|
||||
end
|
||||
|
||||
minetest.register_node("lzr_laser:"..subname.."_takable", def_takable)
|
||||
|
||||
if options.activate ~= false then
|
||||
def_takable._lzr_active = "lzr_laser:"..subname.."_takable_on"
|
||||
local def_takable_on = table.copy(def_core_on)
|
||||
def_takable_on._lzr_untakable = "lzr_laser:"..subname.."_on"
|
||||
|
@ -383,7 +385,6 @@ tm_def_off.mesh_off = "lzr_laser_mirror.obj"
|
|||
-- Transmissive Mirror
|
||||
local tm_def_on_01 = table.copy(tm_def)
|
||||
tm_def_on_01._lzr_transmissive_mirror_state = "01"
|
||||
tm_def_on_01._lzr_inactive = "lzr_laser:transmissive_mirror_00"
|
||||
tm_def_on_01.description = S("Transmissive Mirror (active, 01)")
|
||||
tm_def_on_01.tiles_off = {
|
||||
{name="lzr_laser_laser_full.png", backface_culling=true},
|
||||
|
|
Loading…
Reference in New Issue