1
0
mirror of https://github.com/Dragonop/claycrafter.git synced 2025-07-01 13:00:21 +02:00

Add compatibility with dirt_compressed node from moreblocks

This commit is contained in:
sys4-fr
2018-03-28 19:36:35 +02:00
parent c8c4e41cae
commit feb2efb6bc
4 changed files with 17 additions and 7 deletions

View File

@ -200,10 +200,13 @@ minetest.register_abm({
--
-- Cooking
--
local compressed_dirt = "claycrafter:compressed_dirt"
if minetest.get_modpath("moreblocks") then
compressed_dirt = "moreblocks:dirt_compressed"
end
local cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
local cookable = true
if inv:get_stack("src", 1):get_name() ~= "claycrafter:compressed_dirt" then
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
cookable = false
end