7 Commits

3 changed files with 9 additions and 12 deletions

View File

@ -200,19 +200,14 @@ minetest.register_abm({
-- --
-- Cooking -- 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 cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
local cookable = true local cookable = true
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
cookable = false
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
end end
-- Check if we have enough fuel to burn -- 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 .. "/items.lua")
dofile(modpath .. "/claycrafter.lua") dofile(modpath .. "/claycrafter.lua")
minetest.log("action", "[claycrafter] loaded.")

View File

@ -33,7 +33,7 @@ minetest.register_node("claycrafter:glass_of_water", {
inventory_image = "claycrafter_glass_of_water_inv.png", inventory_image = "claycrafter_glass_of_water_inv.png",
wield_image = "claycrafter_glass_of_water.png", wield_image = "claycrafter_glass_of_water.png",
paramtype = "light", paramtype = "light",
use_texture_alpha = true, use_texture_alpha = "blend",
is_ground_content = false, is_ground_content = false,
walkable = false, walkable = false,
sunlight_propagates = true, sunlight_propagates = true,