зеркало из
				https://github.com/mt-mods/homedecor_modpack.git
				synced 2025-10-31 20:25:25 +01:00 
			
		
		
		
	allow shift-dig a king size bed to get the two twin beds back
Этот коммит содержится в:
		| @@ -264,6 +264,13 @@ for _, color in ipairs(bedcolors) do | ||||
| 		groups = {snappy=3, not_in_creative_inventory=1}, | ||||
| 		selection_box = kbed_cbox, | ||||
| 		collision_box = kbed_cbox, | ||||
| 		after_dig_node = function(pos, oldnode, oldmetadata, digger) | ||||
| 			local inv = digger:get_inventory() | ||||
| 			if digger:get_player_control().sneak and inv:room_for_item("main", "bed_"..color.."_regular 1") then | ||||
| 				inv:remove_item("main", "homedecor:bed_"..color.."_kingsize 1") | ||||
| 				inv:add_item("main", "homedecor:bed_"..color.."_regular 2") | ||||
| 			end | ||||
| 		end, | ||||
| 	}) | ||||
|  | ||||
| 	minetest.register_alias("homedecor:bed_"..color.."_foot",    "homedecor:bed_"..color.."_regular") | ||||
|   | ||||
		Ссылка в новой задаче
	
	Block a user