forked from MineClone5/MineClone5
Add player object check.
* Add one more check if player object is an actual player.
This commit is contained in:
parent
f6ec8e94d2
commit
b8af8cacd5
|
@ -197,7 +197,7 @@ local function composter_harvest(pos, node, player, itemstack, pointed_thing)
|
|||
--
|
||||
-- handler for harvesting bone meal from a ready composter when rightclicked
|
||||
--
|
||||
if not player or player:get_player_control().sneak then
|
||||
if not player or (player:get_player_control() and player:get_player_control().sneak) then
|
||||
return
|
||||
end
|
||||
-- reset ready type composter to empty type
|
||||
|
|
Loading…
Reference in New Issue