[bug][fixed] rightclick human

This commit is contained in:
cale 2016-01-22 14:30:30 +01:00
parent 10f2939aee
commit 59a1692853
2 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,9 @@ minetest.register_entity("story:human", {
if not clicker or not clicker:is_player() then
return
end
if not story.generator.players_storys[clicker:get_player_name()] then
return
end
-- shows the dialog
if story.generator.players_storys[clicker:get_player_name()].pos then
if vector.distance(self.object:getpos(), story.generator.players_storys[clicker:get_player_name()].pos) < 3 then

View File

@ -129,6 +129,9 @@ minetest.register_entity("story:human", {
if not clicker or not clicker:is_player() then
return
end
if not story.generator.players_storys[clicker:get_player_name()] then
return
end
-- shows the dialog
if story.generator.players_storys[clicker:get_player_name()].pos then
if vector.distance(self.object:getpos(), story.generator.players_storys[clicker:get_player_name()].pos) < 3 then