forked from nalc/homedecor_modpack
Minor fixes to inbox.
* Don't trigger global variable warning. * Change form name to avoid possible bugs in the future. * Actually (opt-)depend on screwdriver mod.
This commit is contained in:
parent
2ce071ec16
commit
fe92fdc373
@ -1,2 +1,3 @@
|
||||
default
|
||||
homedecor_i18n
|
||||
screwdriver?
|
||||
|
@ -2,7 +2,7 @@
|
||||
local S = homedecor_i18n.gettext
|
||||
|
||||
local inbox = {}
|
||||
screwdriver = screwdriver or {}
|
||||
local screwdriver = rawget(_G, "screwdriver") or {}
|
||||
|
||||
minetest.register_craft({
|
||||
output ="inbox:empty",
|
||||
@ -53,12 +53,12 @@ minetest.register_node("inbox:empty", {
|
||||
clicker:get_player_control().aux1 then
|
||||
minetest.show_formspec(
|
||||
clicker:get_player_name(),
|
||||
"default:chest_locked",
|
||||
"inbox:mailbox",
|
||||
inbox.get_inbox_formspec(pos))
|
||||
else
|
||||
minetest.show_formspec(
|
||||
clicker:get_player_name(),
|
||||
"default:chest_locked",
|
||||
"inbox:mailbox",
|
||||
inbox.get_inbox_insert_formspec(pos))
|
||||
end
|
||||
return itemstack
|
||||
|
Loading…
Reference in New Issue
Block a user