diff options
author | Florian Euchner <norrepli@gmail.com> | 2014-06-05 16:57:14 +0200 |
---|---|---|
committer | Florian Euchner <norrepli@gmail.com> | 2014-06-05 16:57:14 +0200 |
commit | 1c4db4d675006e471b2f7bbfbffe1b3bfb19ae42 (patch) | |
tree | 781ecca58389c4a5ec2ab5eb54fc8eb75ac30962 | |
parent | d674101936350e828138cdac24717700aca3d80f (diff) | |
parent | ccd3fbe7ed4e6c1e3729f403cf6450e7f3abd92c (diff) |
Merge pull request #14 from cheapie/master
Fix #13
-rw-r--r-- | digilines_inventory/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/digilines_inventory/init.lua b/digilines_inventory/init.lua index d40f7e6..4fe9397 100644 --- a/digilines_inventory/init.lua +++ b/digilines_inventory/init.lua @@ -55,8 +55,10 @@ mychest = tableMergeImmutable(defaultChest,{ meta:set_string("formspec",meta:get_string("formspec").."\nfield[2,4.5;5,1;channel;Channel;${channel}]") end, on_receive_fields = function(pos, formname, fields, sender) - minetest.get_meta(pos):set_string("channel",fields.channel) - return defer(defaultChest.on_receive_fields, pos, formname, fields, sender) + if fields.channel ~= nil then + minetest.get_meta(pos):set_string("channel",fields.channel) + return defer(defaultChest.on_receive_fields, pos, formname, fields, sender) + end end, tube = tableMergeImmutable(defaultChest.tube, { -- note: mese filters cannot put part of a stack in the destination. |