mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Offset Y for snow
This commit is contained in:
parent
59673aba3a
commit
5208406464
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,7 @@ namespace ClassicalSharp {
|
||||||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||||
Vector3 minBelow = MinBB[game.World.GetBlock(x, y - 1, z)];
|
Vector3 minBelow = MinBB[game.World.GetBlock(x, y - 1, z)];
|
||||||
min.X = minBelow.X; min.Z = minBelow.Z;
|
min.X = minBelow.X; min.Z = minBelow.Z;
|
||||||
|
min.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||||
}
|
}
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
@ -33,6 +34,7 @@ namespace ClassicalSharp {
|
||||||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||||
Vector3 maxBelow = MaxBB[game.World.GetBlock(x, y - 1, z)];
|
Vector3 maxBelow = MaxBB[game.World.GetBlock(x, y - 1, z)];
|
||||||
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
||||||
|
max.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||||
}
|
}
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
@ -42,6 +44,7 @@ namespace ClassicalSharp {
|
||||||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||||
Vector3 minBelow = RenderMinBB[game.World.GetBlock(x, y - 1, z)];
|
Vector3 minBelow = RenderMinBB[game.World.GetBlock(x, y - 1, z)];
|
||||||
min.X = minBelow.X; min.Z = minBelow.Z;
|
min.X = minBelow.X; min.Z = minBelow.Z;
|
||||||
|
min.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||||
}
|
}
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
@ -51,6 +54,7 @@ namespace ClassicalSharp {
|
||||||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||||
Vector3 maxBelow = RenderMaxBB[game.World.GetBlock(x, y - 1, z)];
|
Vector3 maxBelow = RenderMaxBB[game.World.GetBlock(x, y - 1, z)];
|
||||||
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
||||||
|
max.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||||
}
|
}
|
||||||
return max;
|
return max;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue