mirror of
				https://github.com/luanti-org/minetest_game.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Fix crash with nil fuel
This commit is contained in:
		@@ -1042,7 +1042,7 @@ minetest.register_abm({
 | 
			
		||||
			fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		if fuel.time <= 0 then
 | 
			
		||||
		if not fuel or fuel.time <= 0 then
 | 
			
		||||
			meta:set_string("infotext","Furnace out of fuel")
 | 
			
		||||
			swap_node(pos,"default:furnace")
 | 
			
		||||
			meta:set_string("formspec", default.furnace_inactive_formspec)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user