fun: darkness later

This commit is contained in:
cha0s 2024-07-13 03:04:16 -05:00
parent 170a874faf
commit 70edcc04de

View File

@ -89,15 +89,15 @@ export default function Ecs({applyFilters, camera, scale}) {
setProjected(Wielder.activeItem()?.project(Position.tile, Direction.direction)); setProjected(Wielder.activeItem()?.project(Position.tile, Direction.direction));
} }
}, [ecs, mainEntity, scale]); }, [ecs, mainEntity, scale]);
useEffect(() => { // useEffect(() => {
setFilters( // setFilters(
applyFilters // applyFilters
? [ // ? [
...(night ? [night] : []) // ...(night ? [night] : [])
] // ]
: [], // : [],
); // );
}, [applyFilters, night]) // }, [applyFilters, night])
return ( return (
<Container <Container
scale={scale} scale={scale}