mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2025-07-13 21:40:27 +02:00
Compare commits
7 Commits
1.0.2
...
e34fdde795
Author | SHA1 | Date | |
---|---|---|---|
e34fdde795 | |||
d2dd770635 | |||
1993068ed1 | |||
436f51ab0d | |||
749d59a530 | |||
bd58dbc48b | |||
4eaba4f6e1 |
2
init.lua
2
init.lua
@ -22,3 +22,5 @@ dofile(MP.."/digicode.lua")
|
|||||||
dofile(MP.."/models.lua")
|
dofile(MP.."/models.lua")
|
||||||
dofile(MP.."/crafts.lua")
|
dofile(MP.."/crafts.lua")
|
||||||
dofile(MP.."/octagon_panes.lua")
|
dofile(MP.."/octagon_panes.lua")
|
||||||
|
|
||||||
|
minetest.log("action", "[scifi_nodes] loaded.")
|
||||||
|
@ -1080,10 +1080,9 @@ minetest.register_node("scifi_nodes:itemholder", {
|
|||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if name == meta:get_string("owner") or
|
if name == meta:get_string("owner") or
|
||||||
minetest.check_player_privs(name, "protection_bypass") then
|
minetest.check_player_privs(name, "protection_bypass") then
|
||||||
local wield_item = clicker:get_wielded_item():get_name()
|
|
||||||
local taken = item:take_item()
|
local taken = item:take_item()
|
||||||
if taken and not taken:is_empty() then
|
if taken and not taken:is_empty() then
|
||||||
minetest.add_item(pos, wield_item)
|
minetest.add_item(pos, taken:to_string())
|
||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user