actually falling doesn't need to change drown timer

This commit is contained in:
UnknownShadow200 2017-07-29 14:55:05 +10:00
parent bdec66cabe
commit a107bf0a56

View File

@ -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
p.startFallY = Math.Max(bb.Min.Y, p.startFallY);
p.drownTime = DateTime.MaxValue;
}
internal static void Drown(Player p, AABB bb) {