summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorx12xx12x <44411062+12xx12@users.noreply.github.com>2022-04-20 08:21:41 +0200
committerAlexander Harkness <me@bearbin.net>2022-04-20 09:41:02 +0200
commit5261e316c52b214dd4602397f4a620e5cee0d132 (patch)
tree18fb6e072d82871b7d1becac7d6744b5fccec686 /src/World.cpp
parentValid Height is now checked by vector. (diff)
downloadcuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.gz
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.bz2
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.lz
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.xz
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.tar.zst
cuberite-5261e316c52b214dd4602397f4a620e5cee0d132.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 77230e5b8..65908ed9d 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -860,16 +860,18 @@ bool cWorld::CheckPlayerSpawnPoint(Vector3i a_Pos)
// Check that surrounding blocks are neither solid or liquid
constexpr std::array<Vector3i, 8> SurroundingCoords =
- {{
- {0, 0, 1},
- {1, 0, 1},
- {1, 0, 0},
- {1, 0, -1},
- {0, 0, -1},
- {-1, 0, -1},
- {-1, 0, 0},
- {-1, 0, 1},
- }};
+ {
+ {
+ {0, 0, 1},
+ {1, 0, 1},
+ {1, 0, 0},
+ {1, 0, -1},
+ {0, 0, -1},
+ {-1, 0, -1},
+ {-1, 0, 0},
+ {-1, 0, 1},
+ }
+ };
for (const auto & Offset : SurroundingCoords)
{