mc-assets 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/itemsRenderer.js
CHANGED
|
@@ -18,7 +18,7 @@ export class ItemsRenderer {
|
|
|
18
18
|
resolveTexture(texture) {
|
|
19
19
|
const atlasParser = texture.startsWith('block/') ? this.blocksAtlasParser : this.itemsAtlasParser;
|
|
20
20
|
const type = texture.startsWith('block/') ? 'blocks' : 'items';
|
|
21
|
-
const textureInfo = atlasParser.getTextureInfo(texture.replace('block/', '').replace('item/', ''), this.version);
|
|
21
|
+
const textureInfo = atlasParser.getTextureInfo(texture.replace('block/', '').replace('blocks/', '').replace('item/', ''), this.version);
|
|
22
22
|
const atlas = atlasParser.atlas[textureInfo.imageType];
|
|
23
23
|
return {
|
|
24
24
|
slice: [
|
|
@@ -61,7 +61,7 @@ export default function worldBlockProvider(blockstatesModels, blocksAtlas, versi
|
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
63
|
getTextureInfo(textureName) {
|
|
64
|
-
return atlasParser.getTextureInfo(textureName.replace('block/', ''), version);
|
|
64
|
+
return atlasParser.getTextureInfo(textureName.replace('block/', '').replace('blocks/', ''), version);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
}
|