Source:
<code>private boolean onTryGridConnect(EntityPlayer entityPlayer, ItemStack stack, ElectricalCableDescriptor cable, Direction side) { UUID uuid = entityPlayer.getPersistentID(); Pair<Coordinate, Direction> p = pending.get(uuid); GridElement other = null; if (p != null) { other = GridLink.getElementFromCoordinate(p.getLeft()); } if (!cable.equals(desc.cableDescriptor)) { <START> Utils.addChatMessage(entityPlayer, "Wrong cable, you need " + desc.cableDescriptor.name); <END> return true; } if (other == null || other == this) { Utils.addChatMessage(entityPlayer, "Setting starting point"); pending.put(uuid, Pair.of(this.coordinate(), side)); } else { final double distance = other.coordinate().trueDistanceTo(this.coordinate()); final int cableLength = (int) Math.ceil(distance); final int range = Math.min(connectRange, other.connectRange); if (stack.stackSize < distance) { Utils.addChatMessage(entityPlayer, "You need " + cableLength + " units of cable"); } else if (distance > range) { Utils.addChatMessage(entityPlayer, "Cannot connect, range " + Math.ceil(distance) + " and limit " + range + " blocks"); } else if (!this.canConnect(other)) { Utils.addChatMessage(entityPlayer, "Cannot connect these two objects"); } else if (!this.validLOS(other)) { Utils.addChatMessage(entityPlayer, "Cannot connect, no line of sight"); } else { if (GridLink.addLink(this, other, side, p.getRight(), cable, cableLength)) { Utils.addChatMessage(entityPlayer, "Added connection"); stack.splitStack(cableLength); } else { Utils.addChatMessage(entityPlayer, "Already connected"); } } pending.remove(uuid); } return true; }</code><technical_language>I personally "sendMessage" a function name. changed it</technical_language>

Target:
private boolean onTryGridConnect(EntityPlayer entityPlayer, ItemStack stack, ElectricalCableDescriptor cable, Direction side) { UUID uuid = entityPlayer.getPersistentID(); Pair<Coordinate, Direction> p = pending.get(uuid); GridElement other = null; if (p != null) { other = GridLink.getElementFromCoordinate(p.getLeft()); } if (!cable.equals(desc.cableDescriptor)) { Utils.sendMessage(entityPlayer, "Wrong cable, you need " + desc.cableDescriptor.name); return true; } if (other == null || other == this) { Utils.sendMessage(entityPlayer, "Setting starting point"); pending.put(uuid, Pair.of(this.coordinate(), side)); } else { final double distance = other.coordinate().trueDistanceTo(this.coordinate()); final int cableLength = (int) Math.ceil(distance); final int range = Math.min(connectRange, other.connectRange); if (stack.getCount() < distance) { Utils.sendMessage(entityPlayer, "You need " + cableLength + " units of cable"); } else if (distance > range) { Utils.sendMessage(entityPlayer, "Cannot connect, range " + Math.ceil(distance) + " and limit " + range + " blocks"); } else if (!this.canConnect(other)) { Utils.sendMessage(entityPlayer, "Cannot connect these two objects"); } else if (!this.validLOS(other)) { Utils.sendMessage(entityPlayer, "Cannot connect, no line of sight"); } else { if (GridLink.addLink(this, other, side, p.getRight(), cable, cableLength)) { Utils.sendMessage(entityPlayer, "Added connection"); stack.splitStack(cableLength); } else { Utils.sendMessage(entityPlayer, "Already connected"); } } pending.remove(uuid); } return true; }