mirror of
				https://codeberg.org/tenplus1/mobs_redo.git
				synced 2025-10-31 07:35:24 +01:00 
			
		
		
		
	add nil check to do_runaway_from
This commit is contained in:
		
							
								
								
									
										4
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								api.lua
									
									
									
									
									
								
							| @@ -9,7 +9,7 @@ local use_cmi = minetest.global_exists("cmi") | ||||
|  | ||||
| mobs = { | ||||
| 	mod = "redo", | ||||
| 	version = "20200923", | ||||
| 	version = "20201001", | ||||
| 	intllib = S, | ||||
| 	invis = minetest.global_exists("invisibility") and invisibility or {} | ||||
| } | ||||
| @@ -1904,7 +1904,7 @@ function mob_class:do_runaway_from() | ||||
| 		return | ||||
| 	end | ||||
|  | ||||
| 	local s = self.object:get_pos() | ||||
| 	local s = self.object:get_pos() ; if not s then return end | ||||
| 	local p, sp, dist, pname | ||||
| 	local player, obj, min_player, name | ||||
| 	local min_dist = self.view_range + 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user