mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2024-08-19 21:04:09 +02:00
bank node clean def
This commit is contained in:
parent
a01f477fc0
commit
5f66421e3f
9
bank.lua
9
bank.lua
@ -25,7 +25,7 @@ local bankcraft = core.settings:get_bool("emeraldbank.bank_craft") or true
|
|||||||
|
|
||||||
|
|
||||||
-- register bank node
|
-- register bank node
|
||||||
core.register_node(":atm:atm", {
|
core.register_node("emeraldbank:bank", {
|
||||||
description = S("Emerald Bank"),
|
description = S("Emerald Bank"),
|
||||||
_doc_items_longdesc = S("This block can keep your emeralds."),
|
_doc_items_longdesc = S("This block can keep your emeralds."),
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@ -41,16 +41,11 @@ core.register_node(":atm:atm", {
|
|||||||
_mcl_hardness = 1,
|
_mcl_hardness = 1,
|
||||||
|
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
--emeraldbank.keep(clicker, itemstack)
|
|
||||||
atm.showform(clicker)
|
atm.showform(clicker)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- on_punch = function(pos, node, puncher, pointed_thing)
|
|
||||||
-- emeraldbank.take(puncher)
|
|
||||||
-- end,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("emeraldbank:bank", "atm:atm")
|
minetest.register_alias("atm:atm", "emeraldbank:bank")
|
||||||
|
|
||||||
|
|
||||||
if bankcraft then
|
if bankcraft then
|
||||||
|
Loading…
Reference in New Issue
Block a user