fix: allow evil grass to grow during world generation even when Allow...Creep is false

This commit is contained in:
Cai 2025-09-26 23:28:00 +08:00
parent a867772116
commit 0cc0f7733a
No known key found for this signature in database
GPG key ID: 7D738D40768F4D11

View file

@ -1263,6 +1263,11 @@ namespace TShockAPI
/// <returns>True if allowed, otherwise false</returns> /// <returns>True if allowed, otherwise false</returns>
private bool OnCreep(int tileType) private bool OnCreep(int tileType)
{ {
if (WorldGen.generatingWorld)
{
return true;
}
if (!Config.Settings.AllowCrimsonCreep && (tileType == TileID.Dirt || tileType == TileID.CrimsonGrass if (!Config.Settings.AllowCrimsonCreep && (tileType == TileID.Dirt || tileType == TileID.CrimsonGrass
|| TileID.Sets.Crimson[tileType])) || TileID.Sets.Crimson[tileType]))
{ {