Fix
This commit is contained in:
parent
9462e0b79b
commit
d214ee9d6b
1 changed files with 191 additions and 189 deletions
2
init.lua
2
init.lua
|
@ -9,6 +9,7 @@ local function get_node_force(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function tochest(fpos,tpos)
|
local function tochest(fpos,tpos)
|
||||||
|
if v.equals(fpos,tpos) then return end
|
||||||
local finv=minetest.get_meta(fpos):get_inventory()
|
local finv=minetest.get_meta(fpos):get_inventory()
|
||||||
local tinv=minetest.get_meta(tpos):get_inventory()
|
local tinv=minetest.get_meta(tpos):get_inventory()
|
||||||
for listn,items in pairs(finv:get_lists()) do
|
for listn,items in pairs(finv:get_lists()) do
|
||||||
|
@ -33,6 +34,7 @@ end
|
||||||
|
|
||||||
minetest.register_chatcommand("/itemstochest",{
|
minetest.register_chatcommand("/itemstochest",{
|
||||||
params="<blocks/seconds>",
|
params="<blocks/seconds>",
|
||||||
|
privs={worldedit=true},
|
||||||
func=function(n,p)
|
func=function(n,p)
|
||||||
local s=tonumber(p) or 250 -- 250 b/s
|
local s=tonumber(p) or 250 -- 250 b/s
|
||||||
local p=minetest.get_player_by_name(n)
|
local p=minetest.get_player_by_name(n)
|
||||||
|
|
Loading…
Reference in a new issue