mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Add player object check.
* Add one more check if player object is an actual player.
This commit is contained in:
parent
ffc2c94096
commit
f22baafaa6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
-- 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
|
return
|
||||||
end
|
end
|
||||||
-- reset ready type composter to empty type
|
-- reset ready type composter to empty type
|
||||||
|
|
Loading…
Reference in a new issue