diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:45:31 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 07:45:31 -0400 |
commit | 3f8478086db8720c0f4b5066779a55a2d0271260 (patch) | |
tree | 929904f8e11f33761c493d9ad8d1556d6763da16 | |
parent | 092ab7e738ac55d1b0e501ce6ef50b196a7f1913 (diff) |
fix crash in battery mod (missing meta check)
-rw-r--r-- | technic/machines/register/battery_box.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index b0d9180..233e410 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -253,6 +253,7 @@ function technic.register_battery_box(data) after_place_node = data.tube and pipeworks.after_place, after_dig_node = technic.machine_after_dig_node, on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) local nodename = minetest.get_node(pos).name if fields.edit_channel then minetest.show_formspec(sender:get_player_name(), |