1
0
mirror of https://github.com/Dragonop/claycrafter.git synced 2025-09-07 17:05:22 +02:00

6 Commits

Author SHA1 Message Date
a658381feb Merge branch 'github' 2021-03-24 20:01:56 +01:00
cbbc225c1f Merge remote-tracking branch 'upstream/master' 2021-03-24 20:00:48 +01:00
fc9daaa401 Merge remote-tracking branch 'upstream/master' 2020-11-14 08:57:05 +01:00
sys4-fr
1a64404611 Ajoute message de chargement du mod dans le journal "action" 2018-12-24 13:02:34 +01:00
sys4-fr
f62ad8ef38 Modify README.md file 2018-08-20 21:47:01 +02:00
sys4-fr
feb2efb6bc Add compatibility with dirt_compressed node from moreblocks 2018-03-28 19:36:35 +02:00
2 changed files with 8 additions and 11 deletions

View File

@@ -200,19 +200,14 @@ 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 minetest.get_modpath("moreblocks") ~= nil then
if inv:get_stack("src", 1):get_name() ~= "moreblocks:dirt_compressed" then
cookable = false
end
else
if inv:get_stack("src", 1):get_name() ~= "claycrafter:compressed_dirt" then
cookable = false
end
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
cookable = false
end
-- Check if we have enough fuel to burn

View File

@@ -4,3 +4,5 @@ local modpath = minetest.get_modpath("claycrafter")
dofile(modpath .. "/items.lua")
dofile(modpath .. "/claycrafter.lua")
minetest.log("action", "[claycrafter] loaded.")