mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 07:25:22 +01:00 
			
		
		
		
	| @@ -158,12 +158,10 @@ core.register_entity(":__builtin:falling_node", { | ||||
| 				or def.drawtype == "normal" | ||||
| 				or def.drawtype == "nodebox" then | ||||
| 			if (def.paramtype2 == "facedir" or def.paramtype2 == "colorfacedir") then | ||||
| 				local fdir = node.param2 % 32 | ||||
| 				local fdir = node.param2 % 32 % 24 | ||||
| 				-- Get rotation from a precalculated lookup table | ||||
| 				local euler = facedir_to_euler[fdir + 1] | ||||
| 				if euler then | ||||
| 					self.object:set_rotation(euler) | ||||
| 				end | ||||
| 				self.object:set_rotation(euler) | ||||
| 			elseif (def.drawtype ~= "plantlike" and def.drawtype ~= "plantlike_rooted" and | ||||
| 					(def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted" or def.drawtype == "signlike")) then | ||||
| 				local rot = node.param2 % 8 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user