diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-26 22:45:13 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-28 22:08:06 +0200 |
commit | b084f1f13fdd73e10fe296ef7d48a3c8beb95585 (patch) | |
tree | 84f4c6dc62444de0dbf5e89436ab898143bf683b /src/Blocks/ChunkInterface.h | |
parent | 1.13+: Send length-prefixed server Brand string (diff) | |
download | cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.gz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.bz2 cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.lz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.xz cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.tar.zst cuberite-b084f1f13fdd73e10fe296ef7d48a3c8beb95585.zip |
Diffstat (limited to 'src/Blocks/ChunkInterface.h')
-rw-r--r-- | src/Blocks/ChunkInterface.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Blocks/ChunkInterface.h b/src/Blocks/ChunkInterface.h index 6ee54b17f..3017df8ab 100644 --- a/src/Blocks/ChunkInterface.h +++ b/src/Blocks/ChunkInterface.h @@ -45,19 +45,15 @@ public: } /** Sets the meta for the specified block, while keeping the blocktype. - If a_ShouldMarkDirty is true, the chunk is marked dirty by this change (false is used eg. by water turning still). - If a_ShouldInformClients is true, the change is broadcast to all clients of the chunk. Ignored if the chunk is invalid. */ - void SetBlockMeta(Vector3i a_BlockPos, NIBBLETYPE a_MetaData, bool a_ShouldMarkDirty = true, bool a_ShouldInformClient = true); + void SetBlockMeta(Vector3i a_BlockPos, NIBBLETYPE a_MetaData); /** OBSOLETE, Use the Vector3-based overload instead. Sets the meta for the specified block, while keeping the blocktype. - If a_ShouldMarkDirty is true, the chunk is marked dirty by this change (false is used eg. by water turning still). - If a_ShouldInformClients is true, the change is broadcast to all clients of the chunk. Ignored if the chunk is invalid. */ - void SetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_MetaData, bool a_ShouldMarkDirty = true, bool a_ShouldInformClient = true) + void SetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYPE a_MetaData) { - return SetBlockMeta({a_BlockX, a_BlockY, a_BlockZ}, a_MetaData, a_ShouldMarkDirty, a_ShouldInformClient); + return SetBlockMeta({a_BlockX, a_BlockY, a_BlockZ}, a_MetaData); } /** Sets the block at the specified coords to the specified value. |