mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -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)) {
|
||||
Vector3 minBelow = MinBB[game.World.GetBlock(x, y - 1, z)];
|
||||
min.X = minBelow.X; min.Z = minBelow.Z;
|
||||
min.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||
}
|
||||
return min;
|
||||
}
|
||||
|
@ -33,6 +34,7 @@ namespace ClassicalSharp {
|
|||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||
Vector3 maxBelow = MaxBB[game.World.GetBlock(x, y - 1, z)];
|
||||
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
||||
max.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
@ -42,6 +44,7 @@ namespace ClassicalSharp {
|
|||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||
Vector3 minBelow = RenderMinBB[game.World.GetBlock(x, y - 1, z)];
|
||||
min.X = minBelow.X; min.Z = minBelow.Z;
|
||||
min.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||
}
|
||||
return min;
|
||||
}
|
||||
|
@ -51,6 +54,7 @@ namespace ClassicalSharp {
|
|||
if (block == Block.Snow && game.World.IsValidPos(x, y - 1, z)) {
|
||||
Vector3 maxBelow = RenderMaxBB[game.World.GetBlock(x, y - 1, z)];
|
||||
max.X = maxBelow.X; max.Z = maxBelow.Z;
|
||||
max.Y -= (1 - MaxBB[game.World.GetBlock(x, y - 1, z)].Y);
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue