fixed duplicate code in npc_talk_edit #8189

This commit is contained in:
Sokomine 2025-03-21 19:52:34 +01:00
parent b2e2f843bd
commit fc6ee8b4d4

View File

@ -1872,7 +1872,6 @@ yl_speak_up.get_sub_fs_edit_option_precondition_entity_type = function(
if(yl_speak_up.speak_to[pname].obj) then
local obj = yl_speak_up.speak_to[pname].obj
if(obj) then
local entity = obj:get_luaentity()
local entity = obj:get_luaentity()
if(entity) then
data.entity_type = entity.name