mirror of
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-11-04 03:05:26 +01:00 
			
		
		
		
	also avoid facedir setting for plantlike, raillike and firelike to avoid clashes if paramtype is used internally in the engine for something else
This commit is contained in:
		@@ -56,7 +56,14 @@ function homedecor.register(name, def)
 | 
			
		||||
			or (def.node_box and "nodebox")
 | 
			
		||||
 | 
			
		||||
	def.paramtype = def.paramtype or "light"
 | 
			
		||||
	if not def.drawtype == "glasslike_framed" then
 | 
			
		||||
 | 
			
		||||
	-- avoid facedir for some drawtypes as they might be used internally for something else
 | 
			
		||||
	-- even if undocumented
 | 
			
		||||
	if not (def.drawtype == "glasslike_framed"
 | 
			
		||||
		or def.drawtype == "raillike"
 | 
			
		||||
		or def.drawtype == "plantlike"
 | 
			
		||||
		or def.drawtype == "firelike") then
 | 
			
		||||
 | 
			
		||||
		def.paramtype2 = def.paramtype2 or "facedir"
 | 
			
		||||
	end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user