feat: Feat/expanded worlds (#107)
* it works kinda but its laggy * attempt at making it faster * Revert "attempt at making it faster" This reverts commit 32a68ed3aec5827362f6a232adfc6d06a93ea355. * Revert "it works kinda but its laggy" This reverts commit 2830b973d4fecafd86969192917a5ab5fc7b9758. * round robin client chunk cache, expanded world type
This commit is contained in:
@@ -45,4 +45,9 @@ public:
|
||||
virtual void dataReceived(int x, int z); // 4J added
|
||||
|
||||
virtual LevelChunk **getCache() { return cache; } // 4J added
|
||||
|
||||
static inline int wrapCoord(int v, int size) {
|
||||
int r = v % size;
|
||||
return (r < 0) ? r + size : r;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user