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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user