finishing with Phase 2

This commit is contained in:
JakeBreath
2026-08-04 19:05:38 -05:00
parent b1ae2a9827
commit 8a6833def0
10 changed files with 43 additions and 23 deletions
+12
View File
@@ -147,6 +147,18 @@
}
}
// The vanilla/base texture must always be loaded first, then features.
// Wide player models additionally always load L1Z0's custom skins
// alongside the default Steve skin (tracked in static/player_skins/).
if (entity === 'player') {
for (const name of ['destroyed_skin.png', 'russian_goat.png']) {
try {
const img = await loadImage('/static/player_skins/' + name);
baseTextures.push({ name: name, dataUrl: imageDataUrl(img) });
} catch (e) {
console.warn('packs: skip player skin', name, e);
}
}
}
return baseTextures.concat(featureTextures);
}