mirror of
https://codeberg.org/tenplus1/bakedclay.git
synced 2024-11-07 00:40:22 +01:00
remove technic_cnc dependency, register cnc nodes using minetest.after
This commit is contained in:
parent
4af6f35734
commit
ed06375ad5
|
@ -2,5 +2,4 @@ default
|
|||
stairs
|
||||
moreblocks?
|
||||
lucky_block?
|
||||
technic_cnc?
|
||||
flowerpot?
|
||||
|
|
11
init.lua
11
init.lua
|
@ -91,10 +91,13 @@ for _, clay in pairs(clay) do
|
|||
-- register bakedclay for use in technic_cnc mod
|
||||
if techcnc_mod then
|
||||
|
||||
technic_cnc.register_all("bakedclay:" .. clay[1],
|
||||
{cracky = 3, not_in_creative_inventory = 1},
|
||||
{"baked_clay_" .. clay[1] .. ".png"},
|
||||
clay[2] .. " Baked Clay")
|
||||
minetest.after(0.1, function()
|
||||
|
||||
technic_cnc.register_all("bakedclay:" .. clay[1],
|
||||
{cracky = 3, not_in_creative_inventory = 1},
|
||||
{"baked_clay_" .. clay[1] .. ".png"},
|
||||
clay[2] .. " Baked Clay")
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user