diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-05-11 10:22:53 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-05-11 10:22:53 -0400 |
commit | 249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3 (patch) | |
tree | 915217a9657158d2a02eb8d93507944f618d5142 /digilines | |
parent | af2fedcf9998bb4a854c2cfd63e4cdad91a6dd5d (diff) | |
download | dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.gz dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.bz2 dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.tar.xz dreambuilder_modpack-249daeb0e6a7d9b637eeb4e5cfda4710a68d59d3.zip |
Add readme.md mostly taken from the forum thread (and markdown-ified)
Updated several mods: castles, homedecor, digilines, farming redo,
jumping, maptools, mesecons, moreblocks, moretrees, pipeworks,
signs_lib, technic, unified_dyes
Deleted the peaceful_npc mod, as it is broken and unmaintained.
Diffstat (limited to 'digilines')
-rw-r--r-- | digilines/inventory.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/digilines/inventory.lua b/digilines/inventory.lua index 70cb133..693f882 100644 --- a/digilines/inventory.lua +++ b/digilines/inventory.lua @@ -1,3 +1,5 @@ +local pipeworks_enabled = minetest.get_modpath("pipeworks") ~= nil + local function sendMessage(pos, msg, channel) if channel == nil then channel = minetest.get_meta(pos):get_string("channel") @@ -23,8 +25,8 @@ local function can_insert(pos, stack) return can end -local tubeconn = minetest.get_modpath("pipeworks") and "^pipeworks_tube_connection_wooden.png" or "" -local tubescan = minetest.get_modpath("pipeworks") and function(pos) pipeworks.scan_for_tube_objects(pos) end or nil +local tubeconn = pipeworks_enabled and "^pipeworks_tube_connection_wooden.png" or "" +local tubescan = pipeworks_enabled and function(pos) pipeworks.scan_for_tube_objects(pos) end or nil minetest.register_alias("digilines_inventory:chest", "digilines:chest") minetest.register_node("digilines:chest", { @@ -52,7 +54,8 @@ minetest.register_node("digilines:chest", { "list[current_name;main;0,1;8,4;]".. "field[2,5.5;5,1;channel;Channel;${channel}]".. ((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "").. - "list[current_player;main;0,6;8,4;]") + "list[current_player;main;0,6;8,4;]".. + "listring[]") local inv = meta:get_inventory() inv:set_size("main", 8*4) end, |