[bug][fixed] rightclick human
This commit is contained in:
parent
10f2939aee
commit
59a1692853
@ -129,6 +129,9 @@ minetest.register_entity("story:human", {
|
|||||||
if not clicker or not clicker:is_player() then
|
if not clicker or not clicker:is_player() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not story.generator.players_storys[clicker:get_player_name()] then
|
||||||
|
return
|
||||||
|
end
|
||||||
-- shows the dialog
|
-- shows the dialog
|
||||||
if story.generator.players_storys[clicker:get_player_name()].pos then
|
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
|
if vector.distance(self.object:getpos(), story.generator.players_storys[clicker:get_player_name()].pos) < 3 then
|
||||||
|
@ -129,6 +129,9 @@ minetest.register_entity("story:human", {
|
|||||||
if not clicker or not clicker:is_player() then
|
if not clicker or not clicker:is_player() then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not story.generator.players_storys[clicker:get_player_name()] then
|
||||||
|
return
|
||||||
|
end
|
||||||
-- shows the dialog
|
-- shows the dialog
|
||||||
if story.generator.players_storys[clicker:get_player_name()].pos then
|
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
|
if vector.distance(self.object:getpos(), story.generator.players_storys[clicker:get_player_name()].pos) < 3 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user