PointLife / PointLife-Issues

Issue Tracker for PointLife Server
0 stars 0 forks source link

[BP-BUG] UDI Apartment seems to reset spontantously #37

Closed PLASMAchicken closed 7 months ago

PLASMAchicken commented 8 months ago

Apartment randomly dissapears since 1.39a, might corrolate with bad Server Data Error Preventor

PLASMAchicken commented 7 months ago

Applied fix 28.01.2024 23:40 and copied Furniture again, will continue to monitor

        [Target(GameSourceEvent.EntitySpawn, ExecutionMode.PreEvent)]
        public bool Spawn(ShEntity entity)
        {

            if(entity is ShDoor door)
            {
                Core.Instance.Logger.Log("Skipping Door Action");
                return false;
            }

            if(entity.GetPlace is BetterApartmentPlace place)
            {
                Core.Instance.Logger.Log("Skipping Entity Action, due to in BetterPlace");
                return false;

            }

            return true;
        }
PLASMAchicken commented 7 months ago

Confirmed fixed