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)
|
||||
end
|
||||
end
|
||||
minetest.register_item(gluedname, nodecore.underride({
|
||||
description = "Glued " .. def.description,
|
||||
groups = {
|
||||
cracky = 0,
|
||||
crumbly = 1,
|
||||
optic_gluable = 0
|
||||
},
|
||||
optic_check = optic_check,
|
||||
tiles = tiles,
|
||||
drop_in_place = name,
|
||||
drop = "",
|
||||
on_rightclick = function() end
|
||||
}, def))
|
||||
local gluedef = nodecore.underride({
|
||||
description = "Glued " .. def.description,
|
||||
groups = {
|
||||
cracky = 0,
|
||||
crumbly = 1,
|
||||
optic_gluable = 0
|
||||
},
|
||||
optic_check = optic_check,
|
||||
tiles = tiles,
|
||||
drop_in_place = name,
|
||||
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 |
Loading…
x
Reference in New Issue
Block a user