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:
parent
040ce8288e
commit
98b6ead591
|
@ -15,13 +15,6 @@ mcl_fovapi = {}
|
|||
mcl_fovapi.registered_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)
|
||||
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
|
||||
player:set_fov(fov_factor, true, modifier.time)
|
||||
else
|
||||
player:set_fov(fov_factor, false, modififer.time)
|
||||
player:set_fov(fov_factor, false, modifier.time)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue