Skip to content

Commit

Permalink
Fixed deprecated enum tile getter
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Dec 15, 2023
1 parent 004d501 commit 8e48952
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ldtk/Project.hx
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@ class Project {
return null;

for(ev in ed.values)
if( ev.id==v.getName() && ev.__tileSrcRect!=null )
if( ev.id==v.getName() && ev.tileRect!=null )
return {
tilesetUid: ed.iconTilesetUid,
x: ev.__tileSrcRect[0],
y: ev.__tileSrcRect[1],
w: ev.__tileSrcRect[2],
h: ev.__tileSrcRect[3],
x: ev.tileRect.x,
y: ev.tileRect.y,
w: ev.tileRect.w,
h: ev.tileRect.h,
};

return null;
Expand Down

0 comments on commit 8e48952

Please sign in to comment.