summaryrefslogtreecommitdiff
path: root/sfinv.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-04 22:15:43 +0100
committerGitHub <noreply@github.com>2018-04-04 22:15:43 +0100
commit0574d0375e6f4db625d2155dea6b755fc47f8514 (patch)
treedcb68e21ff7e3f40e244e586b2e5cea3de5db507 /sfinv.lua
parent2c4da0b88a29c74b2990efe40e8f26ed6ddac9f9 (diff)
parent07997a54f4c082b6c2499f904825fb51394c9bf5 (diff)
Merge dev branch into masterv3.0.0
Diffstat (limited to 'sfinv.lua')
-rw-r--r--sfinv.lua25
1 files changed, 0 insertions, 25 deletions
diff --git a/sfinv.lua b/sfinv.lua
deleted file mode 100644
index e2b6eb4..0000000
--- a/sfinv.lua
+++ /dev/null
@@ -1,25 +0,0 @@
-if minetest.get_modpath("sfinv") then
- local S = awards.gettext
-
- sfinv.register_page("awards:awards", {
- title = S("Awards"),
- on_enter = function(self, player, context)
- context.awards_idx = 1
- end,
- get = function(self, player, context)
- local name = player:get_player_name()
- return sfinv.make_formspec(player, context,
- awards.getFormspec(name, name, context.awards_idx or 1),
- false, "size[11,5]")
- end,
- on_player_receive_fields = function(self, player, context, fields)
- if fields.awards then
- local event = minetest.explode_textlist_event(fields.awards)
- if event.type == "CHG" then
- context.awards_idx = event.index
- sfinv.set_player_inventory_formspec(player, context)
- end
- end
- end
- })
-end