mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01:00
Let collides find fences if searched for (does not find some fences for
F_GROUND or F_SOLID, if those should be searched for).
This commit is contained in:
parent
655c620cb6
commit
9f25bff64c
@ -1094,7 +1094,9 @@ public class BlockProperties {
|
||||
public static final boolean collides(final IBlockAccess access, final double minX, double minY, final double minZ, final double maxX, final double maxY, final double maxZ, final long flags){
|
||||
final int iMinX = Location.locToBlock(minX);
|
||||
final int iMaxX = Location.locToBlock(maxX);
|
||||
final int iMinY = Location.locToBlock(minY);
|
||||
// At least find fences etc. if searched for.
|
||||
// TODO: this is a bit difficult ...
|
||||
final int iMinY = Location.locToBlock(minY - (flags & F_HEIGHT150) != 0 ? 0.5625 : 0);
|
||||
final int iMaxY = Location.locToBlock(maxY);
|
||||
final int iMinZ = Location.locToBlock(minZ);
|
||||
final int iMaxZ = Location.locToBlock(maxZ);
|
||||
|
Loading…
Reference in New Issue
Block a user