mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-12-25 01:40:18 +01:00
Fix gates drop bug reported by kaeza and Kacey, avoid polluting the global namespace.
This commit is contained in:
parent
ec07fc27d7
commit
17579a6aa1
@ -98,6 +98,7 @@ gates = {
|
||||
{name = "and" , inputnumber = 2},
|
||||
{name = "xor" , inputnumber = 2}}
|
||||
|
||||
local onoff, drop, nodename, description, groups
|
||||
for i, gate in ipairs(gates) do
|
||||
if gate.inputnumber == 1 then
|
||||
get_rules = gate_get_input_rules_oneinput
|
||||
@ -114,6 +115,7 @@ for i, gate in ipairs(gates) do
|
||||
groups = {dig_immediate=2, not_in_creative_inventory=1}
|
||||
else
|
||||
onoff = "off"
|
||||
drop = nil
|
||||
nodename = nodename.."_"..onoff
|
||||
description = gate.name.." Gate"
|
||||
groups = {dig_immediate=2}
|
||||
|
Loading…
Reference in New Issue
Block a user