mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 20:53:40 -04:00
Fix rope not resetting fall height
This commit is contained in:
parent
f5f76db999
commit
83e6172137
@ -105,6 +105,9 @@ namespace MCGalaxy.Blocks.Physics {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bool isGas = p.level.CollideType(bHead) == CollideType.WalkThrough;
|
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;
|
if (!isGas) p.startFallY = -1;
|
||||||
p.drownTime = DateTime.MaxValue;
|
p.drownTime = DateTime.MaxValue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user