fix: destroyer
This commit is contained in:
parent
f971295825
commit
fb1a286a86
|
@ -20,11 +20,11 @@ export default function Tiles({eventsChannel}) {
|
||||||
const [ecs] = useEcs();
|
const [ecs] = useEcs();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!ecs) {
|
if (!ecs) {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
const master = ecs.get(1);
|
const master = ecs.get(1);
|
||||||
if (!master) {
|
if (!master) {
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
const {TileLayers} = master;
|
const {TileLayers} = master;
|
||||||
const {area, tileSize} = TileLayers.layer(0);
|
const {area, tileSize} = TileLayers.layer(0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user