Fix FastLadder false with elytra, fix speed & flight false positive with trident, fix #122 and fix #119, fix illegalinteract false positive with torches

This commit is contained in:
Rammelkast committed 2020-11-07 17:06:50 +01:00
1 parent 9473781a26
commit 646e906ada
9 files changed
+83 -23

No files matched your search

@@ -82,7 +82,7 @@ public class IllegalInteract {
}
private static CheckResult checkBlockPlace(Player player, BlockPlaceEvent event) {
if (!isValidTarget(player, event.getBlock())) {
if (event.getBlock().getType().isSolid() && !isValidTarget(player, event.getBlock())) {
return new CheckResult(CheckResult.Result.FAILED, "Place", "tried to place a block out of their view");
}
return PASS;