mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
Core: fix custom blocks with collide type swimthrough replacing core block ids not working (Thanks Daeslender)
This commit is contained in:
parent
683719fb7c
commit
2408984a6b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user