Permalink
Browse files

Fix lava offset (oops)

  • Loading branch information...
UnknownShadow200 committed Nov 11, 2017
1 parent cb2bce7 commit b2ba84fb6ab2b3c9db9238f550283092deb47f5f
Showing with 6 additions and 4 deletions.
  1. +3 −2 ClassicalSharp/Blocks/BlockInfo.cs
  2. +3 −2 src/Client/Block.c
@@ -69,8 +69,9 @@ public static partial class BlockInfo {
public static bool IsLiquid(BlockID block) {
byte collide = ExtendedCollide[block];
return Draw[block] == DrawType.Translucent &&
(collide == CollideType.LiquidWater || collide == CollideType.LiquidLava);
return
(collide == CollideType.LiquidWater && Draw[block] == DrawType.Translucent) ||
(collide == CollideType.LiquidLava && Draw[block] == DrawType.Transparent);
}
public static bool[] BlocksLight = new bool[Block.Count];
View
@@ -174,8 +174,9 @@ Int32 Block_FindID(STRING_PURE String* name) {
bool Block_IsLiquid(BlockID b) {
CollideType collide = Block_ExtendedCollide[b];
return Block_Draw[b] == DrawType_Translucent &&
(collide == CollideType_LiquidWater || collide == CollideType_LiquidLava);
return
(collide == CollideType_LiquidWater && Block_Draw[b] == DrawType_Translucent) ||
(collide == CollideType_LiquidLava && Block_Draw[b] == DrawType_Transparent);
}

0 comments on commit b2ba84f

Please sign in to comment.