Skip to content

Commit

Permalink
Fixed Weather display
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoAbove committed Jul 13, 2023
1 parent 2986f12 commit 8724a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SeedInfo/SeedInfoViews/Weather.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const Weather: FC<IWeatherProps> = ({ weather }) => {

if (weather.rain_material) {
const material = materials.provide(weather.rain_material);
const [a, r, g, b] = hexTorgba(material.graphics.color);
const [a, r, g, b] = hexTorgba(material?.graphics?.color || material.wang_color);
color = `rgba(${r},${g},${b},${a})`;
}
return (
Expand Down

0 comments on commit 8724a62

Please sign in to comment.