Fix rope not resetting fall height

This commit is contained in:
UnknownShadow200 2017-09-09 18:14:52 +10:00
parent f5f76db999
commit 83e6172137

View File

@ -105,6 +105,9 @@ namespace MCGalaxy.Blocks.Physics {
}
} else {
bool isGas = p.level.CollideType(bHead) == CollideType.WalkThrough;
// NOTE: Rope is a special case, it should always reset fall height
if (bHead.BlockID == Block.Rope) isGas = false;
if (!isGas) p.startFallY = -1;
p.drownTime = DateTime.MaxValue;
}