Fix multiversion issues with levitation, fix more stacktraces

This commit is contained in:
Rammelkast committed 2020-10-22 21:28:14 +02:00
1 parent 6497891e43
commit 9473781a26
5 files changed
+13 -47

No files matched your search

@@ -113,7 +113,7 @@ public class VersionUtil {
}
public static Block getTargetBlock(Player player, int distance) {
if (isBountifulUpdate()) {
if (!CURRENT_VERSION.isAtLeast(MinecraftVersion.AQUATIC_UPDATE)) {
return player.getTargetBlock((Set<Material>) null, distance);
}
return player.getTargetBlockExact(distance);