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,7 +30,7 @@ nodecore.register_on_register_item(function(name, def)
tiles[k] = nodecore.underride({name = v.name .. overlay}, v)
end
end
minetest.register_item(gluedname, nodecore.underride({
local gluedef = nodecore.underride({
description = "Glued " .. def.description,
groups = {
cracky = 0,
@ -40,9 +40,10 @@ nodecore.register_on_register_item(function(name, def)
optic_check = optic_check,
tiles = tiles,
drop_in_place = name,
drop = "",
on_rightclick = function() end
}, def))
drop = ""
}, def)
gluedef.on_rightclick = nil
minetest.register_item(gluedname, gluedef)
end)
nodecore.register_craft({

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 339 B