Restore glued optics default right-click action
Allow placing against them, scaling them, etc.
This commit is contained in:
parent
85c96c8094
commit
7dc3933aaf
@ -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 |
Loading…
x
Reference in New Issue
Block a user