Fixed Elytra issues for 1_9_R1, still not able to find .isGliding() in

R2?
This commit is contained in:
Rammelkast committed 2016-06-05 13:37:16 +02:00
1 parent fcc75800d2
commit 6fa3f4c8df
3 files changed
+29 -2

No files matched your search

@@ -0,0 +1,15 @@
package net.gravitydevelopment.anticheat.util;
import org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import net.minecraft.server.v1_9_R1.EntityPlayer;
public class ElytraUtil_R1 {
public static boolean isGliding(Player p) {
EntityPlayer player = ((CraftPlayer)p).getHandle();
return player.cB();
}
}