mirror of
				https://github.com/Dragonop/claycrafter.git
				synced 2025-11-04 07:55:30 +01:00 
			
		
		
		
	Compare commits
	
		
			6 Commits
		
	
	
		
			1.2
			...
			a658381feb
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a658381feb | |||
| cbbc225c1f | |||
| fc9daaa401 | |||
| 
						 | 
					1a64404611 | ||
| 
						 | 
					f62ad8ef38 | ||
| 
						 | 
					feb2efb6bc | 
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user