Core: fix custom blocks with collide type swimthrough replacing core block ids not working (Thanks Daeslender)

This commit is contained in:
UnknownShadow200 2016-12-10 07:56:09 +11:00
parent 683719fb7c
commit 2408984a6b
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ namespace ClassicalSharp {
}
static byte RotateDirection(Game game, byte block, string name, Vector3 offset) {
Vector3 southEast = new Vector3 (1,0,1);
Vector3 southEast = new Vector3 (1, 0, 1);
Vector3 southWest = new Vector3 (-1, 0, 1);
Vector3I pos = game.SelectedPos.TranslatedPos;

View File

@ -227,7 +227,7 @@ namespace ClassicalSharp.Entities {
if (!blockBB.Intersects(bounds)) continue;
modifier = Math.Min(modifier, info.SpeedMultiplier[block]);
if (block >= Block.CpeCount && type == CollideType.SwimThrough)
if (!info.IsLiquid(block) && type == CollideType.SwimThrough)
useLiquidGravity = true;
}
return modifier;