1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ABM and liquid overload skip

This commit is contained in:
Perttu Ahola 2012-07-27 13:45:49 +03:00
parent 98ff4eb4ee
commit 1d44a98f2f
3 changed files with 11 additions and 3 deletions

View file

@ -1636,7 +1636,7 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
while(m_transforming_liquid.size() != 0)
{
// This should be done here so that it is done when continue is used
if(loopcount >= initial_size * 3)
if(loopcount >= initial_size || loopcount >= 1000)
break;
loopcount++;