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     84   		['farming:ethanol'] = {
    85     85   			hold = 'liquid', has = 'farming:ethanol';
    86     86   			empty = 'vessels:glass_bottle';
    87     87   		};
    88     88   	};
    89     89   	alcohols = {
    90     90   		['farming:bottle_ethanol'] = { kind = 'pure' };
    91         -		['wines:vodka'           ] = { kind = 'pure' };
           91  +		['wine:glass_vodka'      ] = { kind = 'pure' };
    92     92   	};
    93     93   	boxes = {};
    94     94   	containers = {};
    95     95   	residue = {
    96     96   		['farming:hemp_oil'] = 'vessels:glass_bottle';
    97     97   	};
    98     98   }

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

   140    140   		elseif list == 'bottle' then
   141    141   			local alc = sorcery.itemclass.get(stack, 'alcohol')
   142    142   			if not alc then return 0 end
   143    143   			if alc.kind == 'pure' then return stack:get_count() end
   144    144   		end
   145    145   		return 0
   146    146   	end;
          147  +
   147    148   	on_metadata_inventory_put = function(pos, list, idx, stack, who)
   148    149   		local m = minetest.get_meta(pos)
   149    150   		local timer = minetest.get_node_timer(pos)
   150    151   		local inv = m:get_inventory()
   151    152   		if inv:is_empty 'herb' then return end
   152    153   		local herb = inv:get_stack('herb',1)
   153    154