Skip to content

Commit 7cbb967

Browse files
committed
✨ Add fullPath to parseResourceLocation result
1 parent 8a814cc commit 7cbb967

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/minecraftUtil.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ export function parseResourceLocation(resourceLocation: string) {
100100
const path = parts.join('')
101101
const resourceType = path.split('/')[0]
102102
const parsed = PathModule.parse(path)
103+
const fullPath = PathModule.join(namespace, path)
103104
return {
104105
namespace,
105106
path,
107+
fullPath,
106108
type: resourceType,
107109
dir: parsed.dir,
108110
name: parsed.name,

0 commit comments

Comments
 (0)