Restore glued optics default right-click action

Allow placing against them, scaling them, etc.
This commit is contained in:
Aaron Suen 2022-01-09 12:54:31 -05:00
parent 85c96c8094
commit 7dc3933aaf
2 changed files with 14 additions and 13 deletions

View File

@ -30,19 +30,20 @@ nodecore.register_on_register_item(function(name, def)
tiles[k] = nodecore.underride({name = v.name .. overlay}, v) tiles[k] = nodecore.underride({name = v.name .. overlay}, v)
end end
end end
minetest.register_item(gluedname, nodecore.underride({ local gluedef = nodecore.underride({
description = "Glued " .. def.description, description = "Glued " .. def.description,
groups = { groups = {
cracky = 0, cracky = 0,
crumbly = 1, crumbly = 1,
optic_gluable = 0 optic_gluable = 0
}, },
optic_check = optic_check, optic_check = optic_check,
tiles = tiles, tiles = tiles,
drop_in_place = name, drop_in_place = name,
drop = "", drop = ""
on_rightclick = function() end }, def)
}, def)) gluedef.on_rightclick = nil
minetest.register_item(gluedname, gluedef)
end) end)
nodecore.register_craft({ nodecore.register_craft({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 339 B