feat: use programmer art textures when on versions 1.13 and below

This commit is contained in:
trafficlunar 2024-12-29 19:40:24 +00:00
parent dca9e43e99
commit 0bfe70809d
13 changed files with 97 additions and 53 deletions

View file

@ -1,14 +0,0 @@
import _blockData from "@/data/blocks/data.json";
const blockData: BlockData = _blockData;
export function getBlockData(version: number) {
const filteredData: BlockData = {};
for (const key in blockData) {
if (blockData[key].version <= version) {
filteredData[key] = blockData[key];
}
}
return filteredData;
}