Fixed caption on center frame when icon

This commit is contained in:
Cooldude2606
2017-12-28 15:36:49 +00:00
parent 5971b603e5
commit 9a2f08c21c

View File

@@ -50,6 +50,7 @@ function center._center.open(event)
direction='vertical',
style=mod_gui.frame_style
}
if player.gui.is_valid_sprite_path(center_frame.caption) then center_frame.caption = '' end
if is_type(_center.draw,'function') then
local success, err = pcall(_center.draw,_center,center_frame)
if not success then error(err) end