fix(guiRenderer): dont break textures with custom namespaces rendering
This commit is contained in:
parent
a8564232f7
commit
09cd2c3f64
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ const generateItemsGui = async (models: Record<string, BlockModelMcAssets>, isIt
|
|||
return null
|
||||
},
|
||||
getTextureUV (texture) {
|
||||
return textureAtlas.getTextureUV(texture.toString().slice(1).split('/').slice(1).join('/') as any)
|
||||
return textureAtlas.getTextureUV(texture.toString().replace('minecraft:', '').replace('block/', '').replace('item/', '').replace('blocks/', '').replace('items/', '') as any)
|
||||
},
|
||||
getTextureAtlas () {
|
||||
return textureAtlas.getTextureAtlas()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue