From 3f8478086db8720c0f4b5066779a55a2d0271260 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz <vanessaezekowitz@gmail.com> Date: Tue, 11 Apr 2017 13:45:31 +0200 Subject: [PATCH] fix crash in battery mod (missing meta check) --- 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 @@ 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(), -- Gitblit v1.8.0