gravity fix
This commit is contained in:
parent
0d1de153ec
commit
7505bbc1a2
@ -113,6 +113,20 @@ public class GravityPlayer extends GravityObject
|
||||
if (!Ent.equals(player))
|
||||
return;
|
||||
|
||||
boolean nearBlock = false;
|
||||
for (Block block : UtilBlock.getSurrounding(Base.getLocation().getBlock(), true))
|
||||
{
|
||||
if (block.getType() != Material.AIR)
|
||||
{
|
||||
nearBlock = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//Requires near block OR batsit
|
||||
if (!Bat.isSitting() && !nearBlock)
|
||||
return;
|
||||
|
||||
GrabDelay = System.currentTimeMillis();
|
||||
|
||||
AddVelocity(player.getLocation().getDirection().multiply(0.5), 0.5);
|
||||
|
Loading…
Reference in New Issue
Block a user