sorcery  Check-in [17322fc1b2]

Overview
Comment:fix wine compat
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 17322fc1b291385cd719b634da448a9cd1c322469c7ca709e7476049aba76c13
User & Date: lexi on 2021-10-27 17:10:12
Other Links: manifest | tags
Context
2021-10-27
18:11
fix group matching check-in: 9599e69051 user: lexi tags: trunk
17:10
fix wine compat check-in: 17322fc1b2 user: lexi tags: trunk
13:42
add distiller, remove old extract recipes check-in: 58edda50fc user: lexi tags: trunk
Changes

Modified data/compat.lua from [168cab79da] to [aa29ffa40a].

84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		['farming:ethanol'] = {
			hold = 'liquid', has = 'farming:ethanol';
			empty = 'vessels:glass_bottle';
		};
	};
	alcohols = {
		['farming:bottle_ethanol'] = { kind = 'pure' };
		['wines:vodka'           ] = { kind = 'pure' };
	};
	boxes = {};
	containers = {};
	residue = {
		['farming:hemp_oil'] = 'vessels:glass_bottle';
	};
}







|







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
		['farming:ethanol'] = {
			hold = 'liquid', has = 'farming:ethanol';
			empty = 'vessels:glass_bottle';
		};
	};
	alcohols = {
		['farming:bottle_ethanol'] = { kind = 'pure' };
		['wine:glass_vodka'      ] = { kind = 'pure' };
	};
	boxes = {};
	containers = {};
	residue = {
		['farming:hemp_oil'] = 'vessels:glass_bottle';
	};
}

Modified distiller.lua from [505457a3b8] to [4be66a79c1].

140
141
142
143
144
145
146

147
148
149
150
151
152
153
		elseif list == 'bottle' then
			local alc = sorcery.itemclass.get(stack, 'alcohol')
			if not alc then return 0 end
			if alc.kind == 'pure' then return stack:get_count() end
		end
		return 0
	end;

	on_metadata_inventory_put = function(pos, list, idx, stack, who)
		local m = minetest.get_meta(pos)
		local timer = minetest.get_node_timer(pos)
		local inv = m:get_inventory()
		if inv:is_empty 'herb' then return end
		local herb = inv:get_stack('herb',1)








>







140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
		elseif list == 'bottle' then
			local alc = sorcery.itemclass.get(stack, 'alcohol')
			if not alc then return 0 end
			if alc.kind == 'pure' then return stack:get_count() end
		end
		return 0
	end;

	on_metadata_inventory_put = function(pos, list, idx, stack, who)
		local m = minetest.get_meta(pos)
		local timer = minetest.get_node_timer(pos)
		local inv = m:get_inventory()
		if inv:is_empty 'herb' then return end
		local herb = inv:get_stack('herb',1)