Commit Graph

4 Commits

Author SHA1 Message Date
5b78c3dbd4 added entity_test.go 2023-11-25 23:36:23 -06:00
459b71a109 fix: Chunks are now goroutine safe
- added Chunk.ForEachEntity()
- refactored SendPacketExclude() to use it
- Chunk.Entities is now Chunk.entities, which is private.
- Chunk.AddEntity() && RemoveEntity() now lock the chunk mutex
2023-11-21 01:49:57 -06:00
06f4a4d33f minor chunk refactoring
- rename GetChunk -> GetChunkPos
- rename SetChunk -> SetChunkPos
2023-11-21 01:36:23 -06:00
458e907c99 moved 'core' to 'internal' 2023-08-23 18:16:24 -05:00