mirror of
https://github.com/Sokomine/chesttools.git
synced 2025-01-09 17:40:37 +01:00
fix crash (fixes #2)
This commit is contained in:
parent
6d2bfe336a
commit
c851ab7e16
2
init.lua
2
init.lua
@ -90,7 +90,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
chesttools.may_use = function( pos, player )
|
chesttools.may_use = function( pos, player )
|
||||||
if( not( player )) then
|
if not (pos and player and player.is_player and player:is_player() and not player.is_fake_player) then
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
local name = player:get_player_name();
|
local name = player:get_player_name();
|
||||||
|
Loading…
Reference in New Issue
Block a user