mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fixed content_abm aliases
Since commit 5a13c49492 when I'm in a new area of the world that hasn't
yet been generated the debug log gets flooded with the following error:
Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to
replace "default:dirt_with_grass" at (729,1,-219) (block (45,0,-14))
This commit fixes that.
			
			
This commit is contained in:
		@@ -54,7 +54,7 @@ public:
 | 
			
		||||
				!ndef->get(n_top).isLiquid() &&
 | 
			
		||||
				n_top.getLightBlend(env->getDayNightRatio(), ndef) >= 13)
 | 
			
		||||
		{
 | 
			
		||||
			n.setContent(ndef->getId("dirt_with_grass"));
 | 
			
		||||
			n.setContent(ndef->getId("mapgen_dirt_with_grass"));
 | 
			
		||||
			map->addNodeWithEvent(p, n);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
@@ -83,7 +83,7 @@ public:
 | 
			
		||||
		if(!ndef->get(n_top).light_propagates ||
 | 
			
		||||
				ndef->get(n_top).isLiquid())
 | 
			
		||||
		{
 | 
			
		||||
			n.setContent(ndef->getId("dirt"));
 | 
			
		||||
			n.setContent(ndef->getId("mapgen_dirt"));
 | 
			
		||||
			map->addNodeWithEvent(p, n);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user