From c851ab7e16dad2765b126511ef009b752b0da2bf Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Fri, 1 Apr 2022 13:39:49 -0700 Subject: [PATCH] fix crash (fixes #2) --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 45f2a90..f70f55b 100644 --- a/init.lua +++ b/init.lua @@ -90,7 +90,7 @@ end 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; end local name = player:get_player_name();