From fd201fb1cd523c73c8c833cca4e9388772849a3e Mon Sep 17 00:00:00 2001 From: FatalErr42O <58855799+FatalError42O@users.noreply.github.com> Date: Thu, 28 Mar 2024 00:28:41 -0700 Subject: [PATCH] overted engine bug that creates unrecoverable greyscreen by setting minimum FOV transition time, added config setting for FOV, added compatibility for spriteguns crosshair and wielditem flag issues. --- init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index e900a28..3924b84 100644 --- a/init.lua +++ b/init.lua @@ -76,11 +76,7 @@ minetest.register_on_joinplayer(function(player) objref_mtable = getmetatable(player) local old_set_fov = objref_mtable.set_fov - Guns4d.old_set_fov = function(...) - minetest.chat_send_all(dump({...})) - old_set_fov(...) - end - local new_old_set = Guns4d.old_set_fov + Guns4d.old_set_fov = old_set_fov function objref_mtable.set_fov(self, ...) local handler = Guns4d.handler_by_ObjRef[self] local fov = select(1, ...) @@ -95,7 +91,7 @@ minetest.register_on_joinplayer(function(player) end local args = {...} args[1] = fov --basically permenantly set the player's fov to 80, making multipliers and resets return there. - new_old_set(self, unpack(args)) + old_set_fov(self, unpack(args)) end local old_get_pos = objref_mtable.get_pos