Ignore weather on rooved tiles (#35214)

Might want more flexibility in future but weather needs some polish and this is fine for now.
This commit is contained in:
metalgearsloth 2025-02-17 02:55:41 +11:00 committed by deltanedas
parent 180c2610b1
commit e584720914
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ public abstract class SharedWeatherSystem : EntitySystem
if (tileRef.Tile.IsEmpty)
return true;
if ((tileRef.Tile.Flags & (byte) TileFlag.Roof) == (byte) TileFlag.Roof)
return false;
var tileDef = (ContentTileDefinition) _tileDefManager[tileRef.Tile.TypeId];
if (!tileDef.Weather)