mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-06-29 23:00:49 +02:00
Compare commits
7 Commits
2018-12-01
...
2019-06-07
Author | SHA1 | Date | |
---|---|---|---|
6ad2c9f568 | |||
05ca3e4f4f | |||
27eb2ca9de | |||
dc8778d7d3 | |||
26e7b46415 | |||
839b0ed4b1 | |||
da764f4ce0 |
@ -1,5 +1,6 @@
|
|||||||
default
|
default
|
||||||
basic_materials
|
basic_materials
|
||||||
mesecons
|
screwdriver
|
||||||
mesecons_mvps
|
mesecons?
|
||||||
|
mesecons_mvps?
|
||||||
digilines?
|
digilines?
|
||||||
|
@ -193,6 +193,8 @@ local function punch_filter(data, filtpos, filtnode, msg)
|
|||||||
["technic:mv_grinder"] = "dst",
|
["technic:mv_grinder"] = "dst",
|
||||||
["technic:mv_grinder_active"] = "dst",
|
["technic:mv_grinder_active"] = "dst",
|
||||||
["technic:tool_workshop"] = "src",
|
["technic:tool_workshop"] = "src",
|
||||||
|
["technic:mv_freezer"] = "dst",
|
||||||
|
["technic:mv_freezer_active"] = "dst"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- make sure there's something appropriate to inject the item into
|
-- make sure there's something appropriate to inject the item into
|
||||||
|
7
init.lua
7
init.lua
@ -133,15 +133,16 @@ dofile(pipeworks.modpath..logicdir.."flowable_node_registry_install.lua")
|
|||||||
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
|
if pipeworks.enable_pipes then dofile(pipeworks.modpath.."/pipes.lua") end
|
||||||
if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
|
if pipeworks.enable_teleport_tube then dofile(pipeworks.modpath.."/teleport_tube.lua") end
|
||||||
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
if pipeworks.enable_pipe_devices then dofile(pipeworks.modpath.."/devices.lua") end
|
||||||
|
|
||||||
if pipeworks.enable_redefines then
|
if pipeworks.enable_redefines then
|
||||||
dofile(pipeworks.modpath.."/compat-chests.lua")
|
dofile(pipeworks.modpath.."/compat-chests.lua")
|
||||||
dofile(pipeworks.modpath.."/compat-furnaces.lua")
|
dofile(pipeworks.modpath.."/compat-furnaces.lua")
|
||||||
end
|
end
|
||||||
if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua") end
|
if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua") end
|
||||||
if pipeworks.enable_lua_tube then dofile(pipeworks.modpath.."/lua_tube.lua") end
|
if pipeworks.enable_lua_tube and
|
||||||
|
(minetest.get_modpath("mesecons") or minetest.get_modpath("digilines")) then
|
||||||
|
dofile(pipeworks.modpath.."/lua_tube.lua")
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
|
minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty")
|
||||||
|
|
||||||
print("Pipeworks loaded!")
|
print("Pipeworks loaded!")
|
||||||
|
|
||||||
|
@ -333,8 +333,11 @@ local safe_globals = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function create_environment(pos, mem, event)
|
local function create_environment(pos, mem, event)
|
||||||
-- Gather variables for the environment
|
-- Make sure the tube hasn't broken.
|
||||||
local vports = minetest.registered_nodes[minetest.get_node(pos).name].virtual_portstates
|
local vports = minetest.registered_nodes[minetest.get_node(pos).name].virtual_portstates
|
||||||
|
if not vports then return {} end
|
||||||
|
|
||||||
|
-- Gather variables for the environment
|
||||||
local vports_copy = {}
|
local vports_copy = {}
|
||||||
for k, v in pairs(vports) do vports_copy[k] = v end
|
for k, v in pairs(vports) do vports_copy[k] = v end
|
||||||
local rports = get_real_port_states(pos)
|
local rports = get_real_port_states(pos)
|
||||||
|
@ -46,6 +46,11 @@ local function read_entities()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function write_entities()
|
local function write_entities()
|
||||||
|
if not luaentity.entities then
|
||||||
|
-- This can happen if crashing on startup, causing another error that
|
||||||
|
-- masks the original one. Return gracefully in that case instead.
|
||||||
|
return
|
||||||
|
end
|
||||||
for _, entity in pairs(luaentity.entities) do
|
for _, entity in pairs(luaentity.entities) do
|
||||||
setmetatable(entity, nil)
|
setmetatable(entity, nil)
|
||||||
for _, attached in pairs(entity._attached_entities) do
|
for _, attached in pairs(entity._attached_entities) do
|
||||||
|
Reference in New Issue
Block a user