More fixes
This commit is contained in:
@@ -35,7 +35,7 @@ public final class PartAccessor {
|
||||
public Optional<IPart> getMaybePart(final BlockEntity te, final IProbeHitData data) {
|
||||
if (te instanceof IPartHost) {
|
||||
BlockPos pos = data.getPos();
|
||||
final Vec3d position = data.getHitVec().add(-pos.getX(), -pos.getY(), -pos.getZ());
|
||||
final Vec3d position = data.getHitPos().add(-pos.getX(), -pos.getY(), -pos.getZ());
|
||||
final IPartHost host = (IPartHost) te;
|
||||
final SelectedPart sp = host.selectPart(position);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user