Skip to content
Prev Previous commit
Next Next commit
Fix respawn packing
  • Loading branch information
rexxar-tc committed Oct 2, 2018
commit ee072db8d708a8dc806d21baa292ac7a8988f210
2 changes: 1 addition & 1 deletion Essentials/Patches/SessionDownloadPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ private static MyObjectBuilder_Sector GetClientSector(ulong steamId)

foreach (var spawngrid in grids)
{
if(spawngrid.BlocksCount > EssentialsPlugin.Instance.Config.MaxPackedRespawnSize)
if(EssentialsPlugin.Instance.Config.MaxPackedRespawnSize > 0 && spawngrid.BlocksCount > EssentialsPlugin.Instance.Config.MaxPackedRespawnSize)
continue;

ob.SectorObjects.Add(spawngrid.GetObjectBuilder());
Expand Down