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

@ -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;