mirror of
				https://codeberg.org/tenplus1/mobs_animal.git
				synced 2025-11-04 01:05:52 +01:00 
			
		
		
		
	fix 5.0x nil error when feeding sheep/cow
This commit is contained in:
		
							
								
								
									
										2
									
								
								cow.lua
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								cow.lua
									
									
									
									
									
								
							@@ -63,7 +63,7 @@ mobs:register_mob("mobs_animal:cow", {
 | 
			
		||||
		if mobs:feed_tame(self, clicker, 8, true, true) then
 | 
			
		||||
 | 
			
		||||
			-- if fed 7x wheat or grass then cow can be milked again
 | 
			
		||||
			if self.food > 6 then
 | 
			
		||||
			if self.food and self.food > 6 then
 | 
			
		||||
				self.gotten = false
 | 
			
		||||
			end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user