mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-24 18:00:29 +01:00
fix crash in battery mod (missing meta check)
This commit is contained in:
parent
092ab7e738
commit
3f8478086d
@ -253,6 +253,7 @@ function technic.register_battery_box(data)
|
|||||||
after_place_node = data.tube and pipeworks.after_place,
|
after_place_node = data.tube and pipeworks.after_place,
|
||||||
after_dig_node = technic.machine_after_dig_node,
|
after_dig_node = technic.machine_after_dig_node,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
local nodename = minetest.get_node(pos).name
|
local nodename = minetest.get_node(pos).name
|
||||||
if fields.edit_channel then
|
if fields.edit_channel then
|
||||||
minetest.show_formspec(sender:get_player_name(),
|
minetest.show_formspec(sender:get_player_name(),
|
||||||
|
Loading…
Reference in New Issue
Block a user