fix: remove blockData variable in Blocks.tsx
This commit is contained in:
parent
b395f9d00c
commit
dca9e43e99
1 changed files with 0 additions and 4 deletions
|
|
@ -5,7 +5,6 @@ import * as PIXI from "pixi.js";
|
|||
import { useApp } from "@pixi/react";
|
||||
import { CompositeTilemap, settings } from "@pixi/tilemap";
|
||||
|
||||
import { getBlockData } from "@/utils/getBlockData";
|
||||
import { findBlockFromRgb } from "@/utils/findBlockFromRgb";
|
||||
|
||||
interface Props {
|
||||
|
|
@ -37,14 +36,11 @@ function Blocks({
|
|||
usableBlocks,
|
||||
coords,
|
||||
scale,
|
||||
version,
|
||||
setLoading,
|
||||
}: Props) {
|
||||
const app = useApp();
|
||||
const tilemapRef = useRef<CompositeTilemap>();
|
||||
|
||||
const blockData = getBlockData(version);
|
||||
|
||||
const tileBlocks = () => {
|
||||
if (!tilemapRef.current) return;
|
||||
const tilemap = tilemapRef.current;
|
||||
|
|
|
|||
Loading…
Reference in a new issue