mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Thanks to @bob7l for suggesting these changes!
This commit is contained in:
1 parent
3990e73100
commit
b6c085a73a
2 files changed
+4
-4
No files matched your search
@@ -56,7 +56,6 @@ public class GlideCheck {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if(glideBuffer.containsKey(name))
|
|
||||||
glideBuffer.remove(name);
|
glideBuffer.remove(name);
|
||||||
}
|
}
|
||||||
lastYDelta.put(name, math);
|
lastYDelta.put(name, math);
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package net.gravitydevelopment.anticheat.check.movement;
|
package net.gravitydevelopment.anticheat.check.movement;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.EnumSet;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.HashSet;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
@@ -91,7 +92,7 @@ public class YAxisCheck {
|
|||||||
return MOVE_UP_BLOCKS.contains(block.getType());
|
return MOVE_UP_BLOCKS.contains(block.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final List<Material> MOVE_UP_BLOCKS = Arrays.asList(new Material[]{
|
private static final EnumSet<Material> MOVE_UP_BLOCKS = EnumSet.of(
|
||||||
Material.ACACIA_STAIRS,
|
Material.ACACIA_STAIRS,
|
||||||
Material.BIRCH_WOOD_STAIRS,
|
Material.BIRCH_WOOD_STAIRS,
|
||||||
Material.BRICK_STAIRS,
|
Material.BRICK_STAIRS,
|
||||||
@@ -105,6 +106,6 @@ public class YAxisCheck {
|
|||||||
Material.SMOOTH_STAIRS,
|
Material.SMOOTH_STAIRS,
|
||||||
Material.SPRUCE_WOOD_STAIRS,
|
Material.SPRUCE_WOOD_STAIRS,
|
||||||
Material.WOOD_STAIRS
|
Material.WOOD_STAIRS
|
||||||
});
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user