mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
actually falling doesn't need to change drown timer
This commit is contained in:
parent
bdec66cabe
commit
a107bf0a56
@ -73,16 +73,13 @@ namespace MCGalaxy.Blocks.Physics {
|
||||
if (fallHeight > p.level.Config.FallHeight)
|
||||
p.HandleDeath(ExtBlock.Air, null, false, true);
|
||||
|
||||
if (fallHeight > 0) p.drownTime = DateTime.MaxValue;
|
||||
p.startFallY = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!allGas) return;
|
||||
if (bb.Min.Y > p.lastFallY) p.startFallY = -1; // flying up resets fall height
|
||||
|
||||
if (bb.Min.Y > p.lastFallY) p.startFallY = -1; // flying up resets fall height
|
||||
p.startFallY = Math.Max(bb.Min.Y, p.startFallY);
|
||||
p.drownTime = DateTime.MaxValue;
|
||||
}
|
||||
|
||||
internal static void Drown(Player p, AABB bb) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user