1
0
Fork 0

Fixed a couple of errors

Removed a debug statement that was broken.
Changed `modififer` to `modifier` in a code block.
This commit is contained in:
Michieal 2023-12-11 03:46:38 +00:00 committed by the-real-herowl
parent 040ce8288e
commit 98b6ead591
1 changed files with 1 additions and 8 deletions

View File

@ -15,13 +15,6 @@ mcl_fovapi = {}
mcl_fovapi.registered_modifiers = {} mcl_fovapi.registered_modifiers = {}
mcl_fovapi.applied_modifiers = {} mcl_fovapi.applied_modifiers = {}
minetest.register_on_joinplayer(function(player)
if DEBUG then
minetest.log("FOV::Player: " .. name .. "\nFOV: " .. player:get_fov())
end
end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)
local name = player:get_player_name() local name = player:get_player_name()
@ -134,7 +127,7 @@ function mcl_fovapi.apply_modifier(player, modifier_name)
if modifier.is_multiplier and is_mult then if modifier.is_multiplier and is_mult then
player:set_fov(fov_factor, true, modifier.time) player:set_fov(fov_factor, true, modifier.time)
else else
player:set_fov(fov_factor, false, modififer.time) player:set_fov(fov_factor, false, modifier.time)
end end
end end