fix: destroyer

This commit is contained in:
cha0s 2024-07-23 21:40:28 -05:00
parent f971295825
commit fb1a286a86

View File

@ -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);