From 8fcbda3765966f644d89a25d435d3336ce4359a9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 9 Jun 2017 15:42:35 +0200 Subject: [PATCH] Revert "Enable zooming by default" This reverts commit 7bbb105488f3868c0eb78cebeee00e4860599b21. Reason: Zooming is actually not possible in Minecraft. --- mods/PLAYER/allow_zoom/README.md | 6 ------ mods/PLAYER/allow_zoom/description.txt | 1 - mods/PLAYER/allow_zoom/init.lua | 12 ------------ mods/PLAYER/allow_zoom/mod.conf | 1 - mods/PLAYER/allow_zoom/settingtypes.txt | 4 ---- settingtypes.txt | 5 ----- 6 files changed, 29 deletions(-) delete mode 100644 mods/PLAYER/allow_zoom/README.md delete mode 100644 mods/PLAYER/allow_zoom/description.txt delete mode 100644 mods/PLAYER/allow_zoom/init.lua delete mode 100644 mods/PLAYER/allow_zoom/mod.conf delete mode 100644 mods/PLAYER/allow_zoom/settingtypes.txt diff --git a/mods/PLAYER/allow_zoom/README.md b/mods/PLAYER/allow_zoom/README.md deleted file mode 100644 index cd32806e1..000000000 --- a/mods/PLAYER/allow_zoom/README.md +++ /dev/null @@ -1,6 +0,0 @@ -Allows zooming by default for all players. -This is done by granting the zoom privilege when a player joins. - -Works for Minetest 0.4.16. - -License: WTFPL diff --git a/mods/PLAYER/allow_zoom/description.txt b/mods/PLAYER/allow_zoom/description.txt deleted file mode 100644 index 472837e53..000000000 --- a/mods/PLAYER/allow_zoom/description.txt +++ /dev/null @@ -1 +0,0 @@ -Allows zooming by default for all players. diff --git a/mods/PLAYER/allow_zoom/init.lua b/mods/PLAYER/allow_zoom/init.lua deleted file mode 100644 index c381d9bdd..000000000 --- a/mods/PLAYER/allow_zoom/init.lua +++ /dev/null @@ -1,12 +0,0 @@ -minetest.register_on_joinplayer(function(player) - local priv = minetest.setting_getbool("allow_zoom") - if priv == nil then - priv = true - end - if priv then - local name = player:get_player_name() - local privs = minetest.get_player_privs(name) - privs.zoom = true - minetest.set_player_privs(name, privs) - end -end) diff --git a/mods/PLAYER/allow_zoom/mod.conf b/mods/PLAYER/allow_zoom/mod.conf deleted file mode 100644 index e51a2c1f8..000000000 --- a/mods/PLAYER/allow_zoom/mod.conf +++ /dev/null @@ -1 +0,0 @@ -name = allow_zoom diff --git a/mods/PLAYER/allow_zoom/settingtypes.txt b/mods/PLAYER/allow_zoom/settingtypes.txt deleted file mode 100644 index e8c9e821a..000000000 --- a/mods/PLAYER/allow_zoom/settingtypes.txt +++ /dev/null @@ -1,4 +0,0 @@ -# This allows zooming by default for all players. -# More specifically, players get the zoom privilege automatically granted on -# when they join. -allow_zoom (Allow zooming) bool true diff --git a/settingtypes.txt b/settingtypes.txt index c7364abcd..b39f2f7b2 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -44,11 +44,6 @@ enable_bed_respawn (Respawn at bed) bool true # This setting is only read at startup. enable_bed_night_skip (Skip night when sleeping) bool true -# This allows zooming by default for all players. -# More specifically, players get the zoom privilege automatically granted on -# when they join. -allow_zoom (Allow zooming) bool true - # If enabled, the recipe book will only show recipes which require one # item which the player has currently in possession. # If disabled, the recipe book shows all crafting recipes.