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 { useApp } from "@pixi/react";
|
||||||
import { CompositeTilemap, settings } from "@pixi/tilemap";
|
import { CompositeTilemap, settings } from "@pixi/tilemap";
|
||||||
|
|
||||||
import { getBlockData } from "@/utils/getBlockData";
|
|
||||||
import { findBlockFromRgb } from "@/utils/findBlockFromRgb";
|
import { findBlockFromRgb } from "@/utils/findBlockFromRgb";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
@ -37,14 +36,11 @@ function Blocks({
|
||||||
usableBlocks,
|
usableBlocks,
|
||||||
coords,
|
coords,
|
||||||
scale,
|
scale,
|
||||||
version,
|
|
||||||
setLoading,
|
setLoading,
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const app = useApp();
|
const app = useApp();
|
||||||
const tilemapRef = useRef<CompositeTilemap>();
|
const tilemapRef = useRef<CompositeTilemap>();
|
||||||
|
|
||||||
const blockData = getBlockData(version);
|
|
||||||
|
|
||||||
const tileBlocks = () => {
|
const tileBlocks = () => {
|
||||||
if (!tilemapRef.current) return;
|
if (!tilemapRef.current) return;
|
||||||
const tilemap = tilemapRef.current;
|
const tilemap = tilemapRef.current;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue