mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Fix #193
This commit is contained in:
1 parent
84ddce8f1e
commit
ebfd8f69af
2 files changed
+11
-1
No files matched your search
@@ -86,6 +86,10 @@ public final class IllegalInteract {
|
||||
|
||||
private static CheckResult checkBlockPlace(final Player player, final BlockPlaceEvent event) {
|
||||
final BlockFace face = event.getBlock().getFace(event.getBlockAgainst());
|
||||
if (face == null) {
|
||||
return PASS;
|
||||
}
|
||||
|
||||
final Vector vector = new Vector(face.getModX(), face.getModY(), face.getModZ());
|
||||
if (event.getBlock().getType().isSolid()
|
||||
&& player.getLocation().getDirection().angle(vector) > Math.toRadians(90)) {
|
||||
|
||||
Reference in new issue
Block a user