Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Sep 18, 2024
1 parent ddaceea commit 280fb09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anti_blockspam/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ minetest.register_on_mods_loaded(function()

minetest.is_protected = function(pos, name, ...)
local player = minetest.get_player_by_name(name)
if player:get_player_control().jump and player:get_look_dir().y <= -0.2 and pos.y >= player:get_pos().y+1.5 then
if player and player:get_player_control().jump and player:get_look_dir().y <= -0.2 and pos.y >= player:get_pos().y+1.5 then
return true
end

Expand Down

0 comments on commit 280fb09

Please sign in to comment.