mirror of
				https://github.com/sys4-fr/server-nalc.git
				synced 2025-10-30 20:15:33 +01:00 
			
		
		
		
	fix Only one enchanted piece of armor is allowed to be placed in the armor slots at one time.
This commit is contained in:
		| @@ -437,6 +437,9 @@ minetest.register_on_joinplayer(function(player) | ||||
|  | ||||
| 			--MFF (crabman/27/11/2015) no same item type. *helmet* | ||||
| 			local ptype = name:split(":")[2]:split("_")[1] | ||||
| 			if ptype == "enchanted" then | ||||
| 			   ptype = name:split(":")[2]:split("_")[2] | ||||
| 			end | ||||
| 			for i=1, size do | ||||
| 				local stack = player_inv:get_stack(listname, i) | ||||
| 				if stack:get_count() > 0 then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user