mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-28 06:34:13 +00:00
fix: replace file.bytes() with file.arrayBuffer()
This commit is contained in:
parent
612d519068
commit
2500a00e21
2 changed files with 4 additions and 4 deletions
|
|
@ -46,7 +46,7 @@ function OpenSchematic({ close }: DialogProps) {
|
|||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
|
||||
const fileExtension = file.name.split(".").pop();
|
||||
const bytes = await file.bytes();
|
||||
const bytes = await file.arrayBuffer();
|
||||
const data = await nbt.read(bytes);
|
||||
|
||||
if (fileExtension == "litematic") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue