mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-12-24 17:50:20 +01:00
parent
fceb4bb696
commit
8b73f9e11d
@ -1,3 +1,5 @@
|
|||||||
|
local pipeworks_enabled = minetest.get_modpath("pipeworks") ~= nil
|
||||||
|
|
||||||
local function sendMessage(pos, msg, channel)
|
local function sendMessage(pos, msg, channel)
|
||||||
if channel == nil then
|
if channel == nil then
|
||||||
channel = minetest.get_meta(pos):get_string("channel")
|
channel = minetest.get_meta(pos):get_string("channel")
|
||||||
@ -23,8 +25,8 @@ local function can_insert(pos, stack)
|
|||||||
return can
|
return can
|
||||||
end
|
end
|
||||||
|
|
||||||
local tubeconn = minetest.get_modpath("pipeworks") and "^pipeworks_tube_connection_wooden.png" or ""
|
local tubeconn = pipeworks_enabled 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 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_alias("digilines_inventory:chest", "digilines:chest")
|
||||||
minetest.register_node("digilines:chest", {
|
minetest.register_node("digilines:chest", {
|
||||||
@ -52,7 +54,8 @@ minetest.register_node("digilines:chest", {
|
|||||||
"list[current_name;main;0,1;8,4;]"..
|
"list[current_name;main;0,1;8,4;]"..
|
||||||
"field[2,5.5;5,1;channel;Channel;${channel}]"..
|
"field[2,5.5;5,1;channel;Channel;${channel}]"..
|
||||||
((default and default.get_hotbar_bg) and default.get_hotbar_bg(0,6) or "")..
|
((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()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("main", 8*4)
|
inv:set_size("main", 8*4)
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user