Skip to content

Commit ad45b53

Browse files
authored
Merge pull request #6334 from decentraland/hotfix/px-invalid-world
fix: dont invalidate portable experiences partitions on realm change
2 parents c3e85b9 + 25509ca commit ad45b53

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Explorer/Assets/DCL/Infrastructure/Global/Dynamic/RealmController.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
using Unity.Mathematics;
3030
using Utility;
3131

32-
namespace Global.Dynamic
32+
namespace Global.Dynamic
3333
{
3434
public class RealmController : IGlobalRealmController
3535
{
@@ -43,7 +43,8 @@ public class RealmController : IGlobalRealmController
4343
.WithNone<DeleteEntityIntention, ISceneFacade>();
4444

4545
private static readonly QueryDescription INVALIDATE_PARTITIONS = new QueryDescription()
46-
.WithAll<PartitionComponent, ISceneFacade>();
46+
.WithAll<PartitionComponent, ISceneFacade>()
47+
.WithNone<PortableExperienceComponent, SmartWearableId>();
4748

4849
private readonly List<ISceneFacade> allScenes = new (PoolConstants.SCENES_COUNT);
4950
private readonly ServerAbout serverAbout = new ();
@@ -303,10 +304,7 @@ private async UniTask UnloadCurrentRealmAsync()
303304
private void InvalidateScenePartitions(World world)
304305
{
305306
world.Query(in INVALIDATE_PARTITIONS,
306-
(ref PartitionComponent partitionComponent) =>
307-
{
308-
partitionComponent.Bucket = byte.MaxValue;
309-
});
307+
(ref PartitionComponent partitionComponent) => { partitionComponent.Bucket = byte.MaxValue; });
310308
}
311309

312310
private void ComplimentWithVolatilePointers(World world, Entity realmEntity)

0 commit comments

Comments
 (0)