summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMichal Havlíček <80639037+havel06@users.noreply.github.com>2023-04-08 00:11:10 +0200
committerGitHub <noreply@github.com>2023-04-08 00:11:10 +0200
commit669392d44a0f74e83b2702fa64d4f8bfb2ec643c (patch)
tree2c80eca6e9504c6475b00e5fd72b18d308d06e0f /src/World.h
parentrefactor: removed m_MojangAPI from RankManager (#5483) (diff)
downloadcuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.gz
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.bz2
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.lz
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.xz
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.zst
cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index b6511edf5..352bc19f3 100644
--- a/src/World.h
+++ b/src/World.h
@@ -843,7 +843,7 @@ public:
virtual bool IsWeatherWetAtXYZ(Vector3i a_Position) override;
/** Returns the seed of the world. */
- int GetSeed(void) { return m_Generator.GetSeed(); }
+ int GetSeed(void) const { return m_Generator.GetSeed(); }
// tolua_end
@@ -892,6 +892,8 @@ public:
as at least one requests is active the chunk will be ticked). */
void SetChunkAlwaysTicked(int a_ChunkX, int a_ChunkZ, bool a_AlwaysTicked = true); // tolua_export
+ /** Returns true if slimes should spawn in the chunk. */
+ bool IsSlimeChunk(int a_ChunkX, int a_ChunkZ) const; // tolua_export
private:
class cTickThread: