Remove unnecessary `IPlayerContext` argument

This commit is contained in:
Brady 2023-06-29 22:54:55 -05:00
parent 3eb7610f89
commit b8ede0a652
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 3 additions and 3 deletions

View File

@ -1032,7 +1032,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
displacement.add(Vec3d.ZERO);
for (int i = 0; i < ticks; i++) {
if (MC_1_12_Collision_Fix.bonk(ctx, this.bsi, hitbox)) {
if (MC_1_12_Collision_Fix.bonk(this.bsi, hitbox)) {
return null;
}
if (delta.lengthSquared() < 1) {
@ -1129,9 +1129,9 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
*/
private static final class MC_1_12_Collision_Fix {
public static boolean bonk(final IPlayerContext ctx, final BlockStateInterface bsi, final AxisAlignedBB aabb) {
public static boolean bonk(final BlockStateInterface bsi, final AxisAlignedBB aabb) {
final Vec3d center = aabb.getCenter();
final double width = (double) ctx.player().width * 0.35D;
final double width = (aabb.maxX - aabb.minX) * 0.35D;
final double x = center.x;
final double y = aabb.minY + 0.5D;
final double z = center.z;