diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-23 23:39:53 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-26 17:58:53 +0100 |
commit | d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d (patch) | |
tree | c2763ddfe026c2121864d6ca5eae640f01133f7e /src/World.h | |
parent | Replace custom ChunkCoordinate with cChunkCoords (diff) | |
download | cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar.gz cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar.bz2 cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar.lz cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar.xz cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.tar.zst cuberite-d9a7c51d4da21976ce3a8d41cde23fc9a4b6eb9d.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.h b/src/World.h index b2d996870..b0ffc2b07 100644 --- a/src/World.h +++ b/src/World.h @@ -896,8 +896,8 @@ public: eShrapnelLevel GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; } void SetTNTShrapnelLevel(eShrapnelLevel a_Flag) { m_TNTShrapnelLevel = a_Flag; } - unsigned GetMaxViewDistance(void) const { return m_MaxViewDistance; } - void SetMaxViewDistance(unsigned a_MaxViewDistance); + int GetMaxViewDistance(void) const { return m_MaxViewDistance; } + void SetMaxViewDistance(int a_MaxViewDistance); bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; } void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; } @@ -1249,7 +1249,7 @@ private: eShrapnelLevel m_TNTShrapnelLevel; /** The maximum view distance that a player can have in this world. */ - unsigned m_MaxViewDistance; + int m_MaxViewDistance; /** Name of the nether world - where Nether portals should teleport. Only used when this world is an Overworld. */ |