diff options
author | SmallJoker <mk939@ymail.com> | 2020-05-02 11:37:57 +0200 |
---|---|---|
committer | VanessaE <vanessa.e.dannenberg@gmail.com> | 2020-05-07 12:13:25 -0400 |
commit | 5410ea74f28de489f7cea15dc5c6dadf16f4d2f3 (patch) | |
tree | 13d6eecafecefbe88b6ea8cd75c145e0548e23d3 | |
parent | 4602290bc5f7f9846b7a68bb3c3b88fff4eac3ed (diff) | |
download | pipeworks-5410ea74f28de489f7cea15dc5c6dadf16f4d2f3.tar pipeworks-5410ea74f28de489f7cea15dc5c6dadf16f4d2f3.tar.gz pipeworks-5410ea74f28de489f7cea15dc5c6dadf16f4d2f3.tar.bz2 pipeworks-5410ea74f28de489f7cea15dc5c6dadf16f4d2f3.tar.xz pipeworks-5410ea74f28de489f7cea15dc5c6dadf16f4d2f3.zip |
Fix wrong inventory_image and wield_image types
-rw-r--r-- | tube_registration.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tube_registration.lua b/tube_registration.lua index 17965d8..c530cbf 100644 --- a/tube_registration.lua +++ b/tube_registration.lua @@ -58,7 +58,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e local tgroups = {snappy = 3, tube = 1, tubedevice = 1, not_in_creative_inventory = 1} local tubedesc = string.format("%s %s", desc, dump(connects)) - local iimg = plain[1] + local iimg = type(plain[1]) == "table" and plain[1].name or plain[1] local wscale = {x = 1, y = 1, z = 1} if #connects == 0 then |