mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-30 20:37:52 +01:00
Spider too rush!
This commit is contained in:
parent
e721b4e759
commit
b8209ac294
@ -1043,9 +1043,10 @@ public class BlockProperties {
|
||||
if ((BlockProperties.getBLockFlags(id) & F_SOLID) != 0){
|
||||
// Might collide.
|
||||
if (collidesBlock(access, minX, minY, minZ, maxX, maxY, maxZ, x, y, z, id)){
|
||||
if ((BlockProperties.getBLockFlags(access.getTypeId(x, y + 1, z)) & F_SOLID) != 0){
|
||||
final int aboveId = access.getTypeId(x, y + 1, z);
|
||||
if ((BlockProperties.getBLockFlags(aboveId) & F_SOLID) != 0){
|
||||
// Check against spider type hacks.
|
||||
if (collidesBlock(access, minX, minY, minZ, maxX, Math.max(maxY, 1.49 + y), maxZ, x, y, z, id)){
|
||||
if (collidesBlock(access, minX, minY, minZ, maxX, Math.max(maxY, 1.49 + y), maxZ, x, y + 1, z, aboveId)){
|
||||
// TODO: This might be seen as a violation for many block types.
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user