mirror of
				https://codeberg.org/tenplus1/mobs_redo.git
				synced 2025-10-31 15:45:22 +01:00 
			
		
		
		
	added fix for when mod profiling enabled and mob is punched
This commit is contained in:
		
							
								
								
									
										8
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								api.lua
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
|  | ||||
| -- Mobs Api (12th May 2016) | ||||
| -- Mobs Api (23rd May 2016) | ||||
|  | ||||
| mobs = {} | ||||
| mobs.mod = "redo" | ||||
| @@ -1756,6 +1756,12 @@ end | ||||
|  | ||||
| local mob_punch = function(self, hitter, tflp, tool_capabilities, dir) | ||||
|  | ||||
| 	-- error checking when mod profiling is enabled | ||||
| 	if not tool_capabilities then | ||||
| 		print ("[MOBS] mod profiling enabled, damage not enabled") | ||||
| 		return | ||||
| 	end | ||||
|  | ||||
| 	-- direction error check | ||||
| 	dir = dir or {x = 0, y = 0, z = 0} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user