Skip to content

Commit bf92444

Browse files
committed
cleanup: remove AirPlaceFeature#findAirPlacePosition() method
1 parent 7224373 commit bf92444

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/tools/redstone/redstonetools/features/toggleable/AirPlaceFeature.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ public static boolean canAirPlace(PlayerEntity player) {
4747
return true;
4848
}
4949

50-
public static HitResult findAirPlacePosition(MinecraftClient client) {
51-
if (client.player == null)
52-
return null;
53-
ClientPlayerEntity player = client.player;
54-
55-
float reach = AirPlaceFeature.reach.getValue();
56-
return player.raycast(reach, 0, false);
57-
}
58-
5950
public static BlockHitResult findAirPlaceBlockHit(PlayerEntity playerEntity) {
6051
var hit = RaycastUtils.rayCastFromEye(playerEntity, reach.getValue());
6152
return new BlockHitResult(hit.getPos(), hit.getSide(), hit.getBlockPos(), false);

0 commit comments

Comments
 (0)