Use minetest.is_player()

This commit is contained in:
GreenXenith 2018-11-28 11:09:10 -08:00
parent 91ea2b5cbd
commit b4f96d5d25
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ minetest.register_node("digilines:lcd", {
on_construct = reset_meta,
on_destruct = clearscreen,
on_punch = function(pos, node, puncher, pointed_thing)
if puncher:is_player() and minetest.get_player_by_name(puncher:get_player_name()) then
if minetest.is_player(puncher) then
spawn_entity(pos)
end
end,