generated from AriasCreations/vsmodtemplate
Attempt to fix a crash when no RTP checks are active that match the chunk generated/loaded.
This commit is contained in:
parent
6e0dbb361a
commit
40f8eb4048
2 changed files with 7 additions and 2 deletions
|
@ -154,6 +154,11 @@ public class RTPFactory
|
|||
|
||||
internal static void ChunkLoaded(Vec2i chunkCoord, IWorldChunk[] chunks)
|
||||
{
|
||||
// Check if this is even a valid check
|
||||
var num = ChunkChecks.Where(x => x.ChunkX == chunkCoord.X && x.ChunkZ == chunkCoord.Y).Count();
|
||||
if (num == 0) return;
|
||||
|
||||
|
||||
// Get the chunk from the stack
|
||||
var chunk = ChunkChecks.Where(x => x.ChunkX == chunkCoord.X && x.ChunkZ == chunkCoord.Y).First();
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"modid": "ariasserverutils",
|
||||
"name": "Aria's Server Utilities",
|
||||
"authors": ["zontreck"],
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:01 AM MST",
|
||||
"version": "1.0.6-dev.9",
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:06 AM MST",
|
||||
"version": "1.0.6-dev.10",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue