summaryrefslogtreecommitdiffstats
path: root/src/Simulator
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/Simulator
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 'src/Simulator')
-rw-r--r--src/Simulator/FluidSimulator.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Simulator/FluidSimulator.cpp b/src/Simulator/FluidSimulator.cpp
index 968b8bd6e..3771b0804 100644
--- a/src/Simulator/FluidSimulator.cpp
+++ b/src/Simulator/FluidSimulator.cpp
@@ -153,13 +153,15 @@ Vector3f cFluidSimulator::GetFlowingDirection(Vector3i a_Pos)
NIBBLETYPE LevelPoint[4];
// blocks around the checking pos
- std::array<Vector3i, 4> Offsets {
+ std::array<Vector3i, 4> Offsets
{
- { 1, 0, 0 },
- { 0, 0, 1 },
- { 1, 0, 0 },
- { 0, 0, 1 }
- }};
+ {
+ { 1, 0, 0 },
+ { 0, 0, 1 },
+ { 1, 0, 0 },
+ { 0, 0, 1 }
+ }
+ };
for (size_t i = 0; i < Offsets.size(); i++)
{