mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Another small slab fix, how many is this now? 8? 9?
This commit is contained in:
1 parent
7f654ac3ec
commit
fa35bf0d82
3 files changed
+8
-2
No files matched your search
@@ -597,7 +597,7 @@ public class Backend
|
|||||||
if(y1 == y2)
|
if(y1 == y2)
|
||||||
{
|
{
|
||||||
//Check if the player is on slabs or crouching on stairs
|
//Check if the player is on slabs or crouching on stairs
|
||||||
if(block.getRelative(BlockFace.NORTH).getTypeId() == 43 || block.getRelative(BlockFace.NORTH).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH).getTypeId() == 44 || block.getRelative(BlockFace.EAST).getTypeId() == 43 || block.getRelative(BlockFace.EAST).getTypeId() == 44 || block.getRelative(BlockFace.WEST).getTypeId() == 43 || block.getRelative(BlockFace.WEST).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH_EAST).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH_EAST).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH_WEST).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH_WEST).getTypeId() == 44 || block.getRelative(BlockFace.NORTH_EAST).getTypeId() == 43 || block.getRelative(BlockFace.NORTH_EAST).getTypeId() == 44 || block.getRelative(BlockFace.NORTH_WEST).getTypeId() == 43 || block.getRelative(BlockFace.NORTH_WEST).getTypeId() == 44 )
|
if(Utilities.isSlab(block.getRelative(BlockFace.NORTH)) || Utilities.isSlab(block.getRelative(BlockFace.SOUTH)) || Utilities.isSlab(block.getRelative(BlockFace.EAST)) || Utilities.isSlab(block.getRelative(BlockFace.WEST)) || Utilities.isSlab(block.getRelative(BlockFace.NORTH_EAST)) || Utilities.isSlab(block.getRelative(BlockFace.SOUTH_EAST)) || Utilities.isSlab(block.getRelative(BlockFace.SOUTH_WEST)) || Utilities.isSlab(block.getRelative(BlockFace.NORTH_WEST)))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -91,6 +91,12 @@ public final class Utilities
|
|||||||
return FOOD.contains(m);
|
return FOOD.contains(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean isSlab(Block block)
|
||||||
|
{
|
||||||
|
int id = block.getTypeId();
|
||||||
|
return id == 43 || id == 44 || id == 125 || id == 126;
|
||||||
|
}
|
||||||
|
|
||||||
public static boolean isStair(Block block)
|
public static boolean isStair(Block block)
|
||||||
{
|
{
|
||||||
int id = block.getTypeId();
|
int id = block.getTypeId();
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ name: AntiCheat
|
|||||||
softdepend: [AntiCheat]
|
softdepend: [AntiCheat]
|
||||||
startup: postworld
|
startup: postworld
|
||||||
url: http://gravitydevelopment.net
|
url: http://gravitydevelopment.net
|
||||||
version: ${project.version}
|
version: ${project.version}-DEV-b${BUILD_NUMBER}
|
||||||
commands:
|
commands:
|
||||||
anticheat:
|
anticheat:
|
||||||
description: Control and view info about AntiCheat
|
description: Control and view info about AntiCheat
|
||||||
|
|||||||
Reference in new issue
Block a user