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