From ca996b5dcb33c3f50b2eed8809f58f41e40e1db0 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 17 Oct 2019 13:31:16 -0500 Subject: [PATCH 1/3] Use mod.conf for description Deletes deprecated description.txt --- description.txt | 2 -- mod.conf | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 description.txt diff --git a/description.txt b/description.txt deleted file mode 100644 index 87dacdd..0000000 --- a/description.txt +++ /dev/null @@ -1,2 +0,0 @@ -player_monoids is a library for managing global player state, such as physics -overrides or player visual size. diff --git a/mod.conf b/mod.conf index 2ff945a..393bbea 100644 --- a/mod.conf +++ b/mod.conf @@ -1 +1,5 @@ -name=player_monoids \ No newline at end of file +name = player_monoids +description = """ +A library for managing global player state, +such as physics overrides or player visual size. +""" \ No newline at end of file From 4df04550e3608faadd7a921674396071b2888561 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 17 Oct 2019 13:35:10 -0500 Subject: [PATCH 2/3] Remove empty lines --- standard_monoids.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/standard_monoids.lua b/standard_monoids.lua index 6b36134..1ea87da 100644 --- a/standard_monoids.lua +++ b/standard_monoids.lua @@ -63,7 +63,6 @@ player_monoids.jump = monoid({ end, }) - -- Gravity monoid. Effect values are gravity multipliers. player_monoids.gravity = monoid({ combine = mult, @@ -76,7 +75,6 @@ player_monoids.gravity = monoid({ end, }) - -- Fly ability monoid. The values are booleans, which are combined by or. A true -- value indicates having the ability to fly. player_monoids.fly = monoid({ @@ -104,7 +102,6 @@ player_monoids.fly = monoid({ end, }) - -- Noclip ability monoid. Works the same as fly monoid. player_monoids.noclip = monoid({ combine = function(p, q) return p or q end, From 1e12f0e293b568a1cf735a177c8114c7fd80da05 Mon Sep 17 00:00:00 2001 From: Panquesito7 Date: Thu, 17 Oct 2019 13:37:03 -0500 Subject: [PATCH 3/3] Give privilege automatically to admin The 'monoid_master' privilege is given to admin automatically. --- test.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test.lua b/test.lua index f006d86..1b8d2da 100644 --- a/test.lua +++ b/test.lua @@ -4,6 +4,7 @@ local speed = player_monoids.speed minetest.register_privilege("monoid_master", { description = "Allows testing of player monoids.", give_to_singleplayer = false, + give_to_admin = true, }) local function test(player)