mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-28 06:34:13 +00:00
feat: use programmer art textures when on versions 1.13 and below
This commit is contained in:
parent
dca9e43e99
commit
0bfe70809d
13 changed files with 97 additions and 53 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue