Allow bramble dimensions to have gravity

This commit is contained in:
Nick 2023-07-18 00:13:19 -04:00
parent aa9aa8c9c6
commit 35f0e80df4

View File

@ -349,6 +349,13 @@ namespace NewHorizons.Handlers
BrambleDimensionBuilder.Make(body, go, ao, sector, owRigidBody);
go = SharedGenerateBody(body, go, sector, owRigidBody);
// Not included in SharedGenerate to not mess up gravity on base game planets
if (body.Config.Base.surfaceGravity != 0)
{
GravityBuilder.Make(go, ao, owRigidBody, body.Config);
}
body.Object = go;
AstroObjectLocator.RegisterCustomAstroObject(ao);