mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
Furnace was crashing stuff again
This commit is contained in:
parent
5e3b9e3578
commit
2d872ce3fa
@ -245,7 +245,7 @@ bool FurnaceNodeMetadata::step(float dtime)
|
|||||||
|
|
||||||
InventoryList *src_list = m_inventory->getList("src");
|
InventoryList *src_list = m_inventory->getList("src");
|
||||||
assert(src_list);
|
assert(src_list);
|
||||||
const InventoryItem *src_item = src_list->getItem(0);
|
InventoryItem *src_item = src_list->getItem(0);
|
||||||
|
|
||||||
bool room_available = false;
|
bool room_available = false;
|
||||||
|
|
||||||
@ -289,6 +289,11 @@ bool FurnaceNodeMetadata::step(float dtime)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Get the source again in case it has all burned
|
||||||
|
*/
|
||||||
|
src_item = src_list->getItem(0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
If there is no source item, or the source item is not cookable,
|
If there is no source item, or the source item is not cookable,
|
||||||
or the furnace is still cooking, or the furnace became overloaded, stop loop.
|
or the furnace is still cooking, or the furnace became overloaded, stop loop.
|
||||||
|
Loading…
Reference in New Issue
Block a user