mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Merge pull request #117 from LethargicLion/master
Fix bug #68: "BED: Day Cycle Glitch"
This commit is contained in:
commit
4fc6ba3e2c
1 file changed
+2
-2
@@ -220,7 +220,7 @@ public class Backend
|
||||
|
||||
public boolean checkYSpeed(Player player, double y)
|
||||
{
|
||||
if (!player.isInsideVehicle() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP))
|
||||
if (!player.isInsideVehicle() && !player.isSleeping() && y > magic.Y_SPEED_MAX && !isDoing(player, velocitized, magic.VELOCITY_TIME) && !player.hasPotionEffect(PotionEffectType.JUMP))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -230,7 +230,7 @@ public class Backend
|
||||
public boolean checkNoFall(Player player, double y)
|
||||
{
|
||||
String name = player.getName();
|
||||
if (player.getGameMode() != GameMode.CREATIVE && player.getVehicle() == null && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player))
|
||||
if (player.getGameMode() != GameMode.CREATIVE && !player.isInsideVehicle() && !player.isSleeping() && !isMovingExempt(player) && !justPlaced(player) && !Utilities.isInWater(player))
|
||||
{
|
||||
if (player.getFallDistance() == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user