mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-01-08 22:37:36 +01: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
|
||||
core.register_node(":atm:atm", {
|
||||
core.register_node("emeraldbank:bank", {
|
||||
description = S("Emerald Bank"),
|
||||
_doc_items_longdesc = S("This block can keep your emeralds."),
|
||||
is_ground_content = false,
|
||||
@ -41,16 +41,11 @@ core.register_node(":atm:atm", {
|
||||
_mcl_hardness = 1,
|
||||
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
--emeraldbank.keep(clicker, itemstack)
|
||||
atm.showform(clicker)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user