mirror of
				https://codeberg.org/tenplus1/mobs_redo.git
				synced 2025-10-26 13:25:32 +01:00 
			
		
		
		
	reset parent movement after baby born
This commit is contained in:
		
							
								
								
									
										6
									
								
								api.lua
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								api.lua
									
									
									
									
									
								
							| @@ -25,7 +25,7 @@ local use_cmi = minetest.global_exists("cmi") | |||||||
|  |  | ||||||
| mobs = { | mobs = { | ||||||
| 	mod = "redo", | 	mod = "redo", | ||||||
| 	version = "20230328", | 	version = "20230331", | ||||||
| 	intllib = S, | 	intllib = S, | ||||||
| 	invis = minetest.global_exists("invisibility") and invisibility or {} | 	invis = minetest.global_exists("invisibility") and invisibility or {} | ||||||
| } | } | ||||||
| @@ -1505,6 +1505,10 @@ function mob_class:breed() | |||||||
| 						return | 						return | ||||||
| 					end | 					end | ||||||
|  |  | ||||||
|  | 					-- reset parent movement | ||||||
|  | 					self.follow_stop = false | ||||||
|  | 					ent.follow_stop = false | ||||||
|  |  | ||||||
| 					-- custom breed function | 					-- custom breed function | ||||||
| 					if self.on_breed then | 					if self.on_breed then | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user